[jenkins] Added JNLP port info to README

This commit is contained in:
Geoff Bourne 2015-02-17 19:35:39 -06:00
parent 574fc53a55
commit d63bc698d8

View File

@ -32,3 +32,18 @@ A more realistic example is installing git, openjdk-7-jdk, etc:
and then Configure the JDK in Jenkins:
![](http://i.imgur.com/HVetwKc.png)
# Enabling Jenkins slave agents
By default, Jenkins will pick a random port to allow slave nodes launched
by JNLP. Since Docker networking is basically a firewall, a random port
won't work for us. Instead the fixed port **38252** was chosen (arbitrarily)
to be exposed by the container.
Launch your Jenkins container using
ID=$(docker run -d -p 8080:8080 -p 38252:38252 itzg/jenkins)
and configure the port in the Global Security settings:
![](http://i.imgur.com/PhQiEHy.png)