Dockerfile for https://hub.docker.com/r/darrylbresland/jenkins_slave automated build.
Any changes pushed to master will trigger a new docker image to be built automatically.
This image is intended to be used as a base for new jenkins slaves:
# Use this image as a starting point FROM darrylbresland/jenkins_slave # Change password (or alternatively authentication mechanism) RUN echo "jenkins:newpass" | chpasswd # Install other dependencies RUN apt-get install -y ruby ...
This image also uses swarm to attempt to automatically connect the slave to a compatible nearby jenkins master node. The master node must have the swarm plugin enabled. There is also a bug that requires the user to hit submit (even though the value isn't changing) on the configuration page where the JENKINS_URL can be set. If you do not do this, you may see a connection error in the logs of this slave node.