Build Docker Image

  1. Access ECR
  • Select Repositories
  • 2 repositories appear: STACK_NAME-like-XXX and STACK_NAME-mono-XXX

 Microservices with AWS Fargate

  1. Now we will build the like service
 cd ~/environment/amazon-ecs-mythicalmysfits-workshop/workshop-1/app/like-service
 LIKE_ECR_REPOSITORY_URI=$(aws ecr describe-repositories | jq -r .repositories[].repositoryUri | grep like)
 docker build -t like-service .

 Microservices with AWS Fargate

  1. Successfully build the docker image then push it to ECR with the tag latest.
 docker tag like-service:latest $LIKE_ECR_REPOSITORY_URI:latest
 docker push $LIKE_ECR_REPOSITORY_URI:latest

 Microservices with AWS Fargate

  1. Check that the image has been pushed in STACK_NAME-like-XXX

 Microservices with AWS Fargate