mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
[jenkins] Added JNLP port info to README
This commit is contained in:
parent
574fc53a55
commit
d63bc698d8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user