Last active
March 19, 2018 08:34
-
-
Save foxutech/acf80bf8151871511286a442bb82b349 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
AWS_ACCOUNT_ID="xxxxxxxxxxxxxx" | |
aws configure set default.region us-east-1 | |
# Login AWS Docker registry | |
eval $(aws ecr get-login --no-include-email) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Usage sh ecr_pull.sh "repo_name" "TAG_NAME" | |
#Account Information | |
AWS_ACCOUNT_ID="xxxxxxxxxxxxxx" | |
#REPO and TAG information | |
NAME=$1 | |
VERSION=$2 | |
# pull the image | |
docker pull $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/$NAME:$VERSION |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Usage sh ecr_pull.sh "repo_name" "TAG_NAME" | |
#Account Information | |
AWS_ACCOUNT_ID="xxxxxxxxxxxxxx" | |
#REPO and TAG information | |
NAME=$1 | |
VERSION=$2 | |
# pull the image | |
docker pull $AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/$NAME:$VERSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment