Last active
October 26, 2015 08:33
-
-
Save marsyang1/43d1e706645909b22178 to your computer and use it in GitHub Desktop.
Linus build Docker Container
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 | |
rm xxx*.jar | |
wget --auth-no-challenge --user *** --password *** 'http:// **domain url *** /jenkins/job/ *** job name *** /ws/target/ xxx.jar' | |
docker stop container-name | |
docker rm container-name | |
docker rmi image-name | |
docker build -t image-name:latest . | |
docker run -d --name conainer-name image-name:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment