wiki:WikiStart/BuildServer/DockerChroot

Version 3 (modified by stpl01, 4 years ago) (diff)

--

Get docker runnig on the host

follow: https://wiki.jenkins-ci.org/display/JENKINS/Docker+Plugin (without ssh setup)

add the host jenkins user to the docker group

http://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo

inside, install wget and java apt-get update apt-get install wget openjdk-7-jre

commit it to a new node name

to run the slave manage the jenkins nodes and add the line

sudo docker run -i -t -v /data/jenkins:/data/jenkins ubuntu:14.04.2 /data/jenkins/build_scripts/jenkins_slave