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 |
yes please communication i think i am having issue with slave node
jnlp_slave | INFO: Locating server among [http://192.168.8.113:8080/]
jnlp_slave | Mar 05, 2023 11:36:51 PM hudson.remoting.jnlp.Main$CuiListener error
jnlp_slave | SEVERE: Failed to connect to http://192.168.8.113:8080/tcpSlaveAgentListener/: connect timed out
jnlp_slave | java.io.IOException: Failed to connect to http://192.168.8.113:8080/tcpSlaveAgentListener/: connect timed out
jnlp_slave | at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:214)
jnlp_slave | at hudson.remoting.Engine.innerRun(Engine.java:724)
jnlp_slave | at hudson.remoting.Engine.run(Engine.java:540)
jnlp_slave | Caused by: java.net.SocketTimeoutException: connect timed out
jnlp_slave | at java.net.PlainSocketImpl.socketConnect(Native Method)
jnlp_slave | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
jnlp_slave | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
jnlp_slave | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
jnlp_slave | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
jnlp_slave | at java.net.Socket.connect(Socket.java:607)
jnlp_slave | at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
jnlp_slave | at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
jnlp_slave | at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
jnlp_slave | at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
jnlp_slave | at sun.net.www.http.HttpClient.New(HttpClient.java:339)
jnlp_slave | at sun.net.www.http.HttpClient.New(HttpClient.java:357)
jnlp_slave | at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226)
jnlp_slave | at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
jnlp_slave | at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
jnlp_slave | at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990)
jnlp_slave | at org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver.resolve(JnlpAgentEndpointResolver.java:211)
jnlp_slave | ... 2 more
jnlp_slave |
jnlp_slave exited with code 255
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how do they communicate? You could put the jenkins setup part too