AWS Fargate

Fargate vs EC2

Fargate

Build container

Clone repository and build

git clone git@bitbucket.org:tenantcloud/www.tenantcloud.com.git -b master www-tenantcloud-com_master --depth 1

 

Build

docker build -t 963713796187.dkr.ecr.us-west-2.amazonaws.com/tenantcloud/www:latest .

 

Push image

Login to ECR

$(aws ecr get-login --no-include-email)

 

Push

docker push 963713796187.dkr.ecr.us-west-2.amazonaws.com/tenantcloud/www:latest

Update AWS Fargate

Update to latest image

 

aws ecs update-service --cluster www-cluster --service www-service --force-new-deployment

 

deck

By TenantCloud