Skip to content

HubGab-Git/parent-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Parent container

Description

Tutorial to create AWS ECR repository, create docker image with custom nginx site and push to mentioned ECR repository

Usage

Provision ECR

aws cloudformation deploy \
--template aws/cloudFormation/ecr.yaml \
--stack-name nginx-www

Create docker image

docker build -t nginx-www aws/dockerFile 

Docker login ECR

aws ecr get-login-password --region region | docker login --username AWS --password-stdin aws_account_id.dkr.ecr.region.amazonaws.com

Docker tag

docker tag nginx-www:latest aws_account_id.dkr.ecr.region.amazonaws.com/softserve-nginx

Docker push

docker push aws_account_id.dkr.ecr.region.amazonaws.com/softserve-nginx

Check if working

docker run -it --rm -d -p 8080:80 --name web aws_account_id.dkr.ecr.region.amazonaws.com/softserve-nginx

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published