updated some jenkins information
This commit is contained in:
parent
991ec99ae6
commit
93a8e11888
@ -1,4 +1,22 @@
|
|||||||
|
pull the jenkins lts image.
|
||||||
|
# docker pull jenkins/jenkins:lts
|
||||||
|
|
||||||
|
start a jenkins container.
|
||||||
|
# mkdir -p ${HOME}/data/jenkins_1_home
|
||||||
|
# docker run -p 8081:8080 --name jenkins-1 --restart=unless-stopped -d -i -t -v ${HOME}/data/jenkins_1_home:/var/jenkins_home jenkins/jenkins:lts
|
||||||
|
|
||||||
|
|
||||||
|
instead of mapping to a specific directory, make may to a named volume.
|
||||||
|
# docker run -p 8081:8080 --name jenkins-1 -v jenkins_1_home:/var/jenkins_home jenkins/jenkins:lts
|
||||||
|
# docker volume create jenkins_1_home
|
||||||
|
# docker volume ls
|
||||||
|
# docker volume inspect jenkins_1_home
|
||||||
|
|
||||||
|
|
||||||
|
## on some other build machines, you may create agent images and run them
|
||||||
|
make centos6-jenkins
|
||||||
docker run -d -p 9922:22 --name=debian-jenkins-agent --restart=unless-stopped debian-jenkins:latest /usr/sbin/sshd -D
|
docker run -d -p 9922:22 --name=debian-jenkins-agent --restart=unless-stopped debian-jenkins:latest /usr/sbin/sshd -D
|
||||||
|
|
||||||
|
make debian-jenkins
|
||||||
docker run -d -p 9923:22 --name=centos6-jenkins-agent --restart=unless-stopped centos6-jenkins:latest /usr/sbin/sshd -D
|
docker run -d -p 9923:22 --name=centos6-jenkins-agent --restart=unless-stopped centos6-jenkins:latest /usr/sbin/sshd -D
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user