Created
June 29, 2016 13:36
-
-
Save vpack/ed43760da0935afc1a38a8f0e397462e to your computer and use it in GitHub Desktop.
Docker Image Migration
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
aws ecr get-login > /tmp/key | |
sh -x /tmp/key |
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
cat c | |
ECR=9002725700.dkr.ecr.us-east-1.amazonaws.com | |
create(){ | |
aws ecr create-repository --repository-name $2 | |
} | |
#push(){ | |
a(){ | |
REPO=$2 | |
VERSION=$3 | |
docker pull $1/$REPO:$VERSION | |
docker tag $1/$REPO:$VERSION $ECR/$REPO:$VERSION | |
docker push $ECR/$REPO:$VERSION | |
} | |
a dev-docker-registry.crme.com clear/aon-gateway 17_DEV |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment