Created
July 22, 2015 10:44
-
-
Save zxkane/ce20fa3c7e3420d68d6c to your computer and use it in GitHub Desktop.
launch jenkins 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
docker stop vme-jenkins | |
docker rm vme-jenkins | |
export HOST_IP=`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'` | |
docker run --name vme-jenkins -p $HOST_IP:8080:8080 -p 50000:50000 -e "JAVA_OPTS=-Duser.timezone=Asia/Hong_Kong" -v /home/zxkane/jenkins:/var/jenkins_home -d jenkins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment