Systematic Architecture [EN]
The blog on systems development/architecture, to be a beautiful, artistic one.
Monday, 3 October 2016
Jenkins on Docker
Jenkins on Docker ====================================== based on macOS Install Docker -------------- ```bash brew cask install docker ``` ### Installed Docker path ```bash /Applications/Docker.app/Contents/Resources/bin/docker ``` Create Jenkins image -------------------- ```bash $ docker run --name myjenkins -p 8080:8080 -p 50000:50000 -v /var/jenkins_home jenkins ``` or to specify the absolute path ```bash $ docker run --name myjenkins -p 8080:8080 -p 50000:50000 -v /Users/yourusername/Docker/Jenkins:/var/jenkins_home jenkins ``` Open Jenkins site ------------------ Go to with a browser ```bash http://localhost:8080/ ``` To know the admin password ``` $ less /path/to/yourJenkinsImage/Jenkins/secrets/initialAdminPassword ``` You should create an account on your Jenkins site. Start your Jenkins image created on Docker ------------------------------------------ ```bash $ docker start myjenkins ``` Stop your Jenkins image created on Docker ------------------------------------------ ```bash $ docker stop myjenkins ``` SSH access into a container --------------------------- ```bash docker exec -it myjenkins /bin/bash ``` ```bash jenkins@abcdefg123456:/$ echo $JENKINS_HOME /var/jenkins_home ```
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment