Created
January 10, 2017 02:20
-
-
Save vfarcic/886ae97fe7a98864239e9c61929a3c7c to your computer and use it in GitHub Desktop.
This file contains 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
git clone https://github.com/vfarcic/go-demo.git | |
cd go-demo | |
docker-machine create -d virtualbox go-demo | |
docker-machine env go-demo | |
eval $(docker-machine env go-demo) | |
cat docker-compose-test-local.yml | |
docker-compose \ | |
-f docker-compose-test-local.yml \ | |
run --rm unit | |
ls -l *go-demo* | |
docker build -t go-demo . | |
docker-compose \ | |
-f docker-compose-test-local.yml \ | |
build app | |
docker images | |
docker-compose \ | |
-f docker-compose-test-local.yml \ | |
up -d staging-dep | |
docker-compose \ | |
-f docker-compose-test-local.yml \ | |
ps | |
docker-compose \ | |
-f docker-compose-test-local.yml \ | |
run --rm staging | |
docker-compose \ | |
-f docker-compose-test-local.yml \ | |
down | |
docker-compose \ | |
-f docker-compose-test-local.yml \ | |
ps | |
docker-compose \ | |
-f docker-compose-local.yml \ | |
up -d registry | |
docker pull alpine | |
docker tag alpine localhost:5000/alpine | |
docker push localhost:5000/alpine | |
ls -1 docker/registry/v2/repositories/alpine/ | |
docker tag go-demo localhost:5000/go-demo:1.0 | |
docker push localhost:5000/go-demo:1.0 | |
docker-machine rm -f go-demo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment