Use phusion/baseimage-docker
jglick opened this issue · 2 comments
phusion/baseimage-docker might be a better base for the jenkins-slave
image at least.
I tried doing just this; it's problematic, at least on the vhost I was using.
Because the phusion image launches runit, it takes 500-1500 ms before sshd is up and running and ready to accept connections.
The jenkins-docker plugin attempts to connect immediately, and upon getting a RST from the Jenkins slave, gives up and tries launching another.
The background processing eventually cleans up the ones that didn't start fast enough, but the net experience is that it was taking my master 5-20 attempts to launch a slave based on phusion/baseimage-docker. Only when one randomly came up a bit faster than the others was the slave able to be provisioned.
Perhaps a delay before provisioning in the jenkins-docker plugin could help, but I believe that a straight switch to phusion/baseimage-docker at this point would degrade the experience for some (many?) docker configurations.
OK.