Created
August 22, 2017 05:53
-
-
Save SWBSanjeewa/72c5e683a5f7f43fa816c581d523b8df to your computer and use it in GitHub Desktop.
Run jenkins master and slave using docker compose
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
Master - jenkins-master-docker-compose.yml | |
jenkins_app: | |
image: jenkins:2.60.1 | |
container_name: jenkins_master | |
restart: always | |
ports: | |
- "80:8080" | |
- "50000:50000" | |
volumes: | |
- /mnt/jenkins_home:/var/jenkins_home | |
docker-compose -f jenkins-master-docker-compose.yml up -d | |
Slave - jenkins-slave-docker-compose.yml | |
jenkins_slave: | |
image: jenkinsci/jnlp-slave | |
container_name: jenkins_slave_1 | |
command: -url http://build.cambio.se 9342fb2b08caeb4e6643afa29609e346a24a08331ab0f38cc98733de0d2cf284 jnlp-docker-slave | |
restart: always | |
volumes: | |
- /mnt/jenkins_slave:/var/jenkins_home | |
docker-compose -f jenkins-slave-docker-compose.yml up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes please communication i think i am having issue with slave node