tlvu / jenkins-ssh-slave

Jenkins ssh slave with docker support to launch builds inside its own docker.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jenkins-ssh-slave

Jenkins ssh slave with docker support to launch builds inside its own docker.

Based on jenkins/ssh-slave.

Same usage instruction as the original jenkins/ssh-slave with a new environment variable DOCKER_GROUP_ON_HOST and new docker.sock volume mount.

Sample run:

docker run
  -e "JENKINS_SLAVE_SSH_PUBKEY=`cat your_id_rsa.pub`" \
  -e "DOCKER_GROUP_ON_HOST=`getent group |grep docker | awk -F: '{print $3}'`" \
  -v /var/run/docker.sock:/var/run/docker.sock \
  tlvu/jenkins-ssh-slave

About

Jenkins ssh slave with docker support to launch builds inside its own docker.

License:Apache License 2.0


Languages

Language:Dockerfile 53.5%Language:Shell 46.5%