Sign inSign up

rlagutinhub/docker.jenkins-ssh-slave

By rlagutinhub

•Updated almost 7 years ago

Image
0

871

rlagutinhub/docker.jenkins-ssh-slave repository overview

⁠Jenkins SSH slave Docker image

This image is intended to be used as Jenkins SSH Slave on docker. This is a modification of the official image jenkins/ssh-slave⁠. See Jenkins Distributed builds⁠ for more info.

  • Base image oraclelinux:7-slim

FYI https://github.com/jenkinsci/docker-ssh-slave⁠


⁠Usage

To build a Docker image

docker build -f Dockerfile -t docker.jenkins-ssh-slave:latest .

To run a Docker container

docker run rlagutinhub/docker.jenkins-ssh-slave "<public key>"

or

docker run -e "JENKINS_SLAVE_SSH_PUBKEY=<public key>" rlagutinhub/docker.jenkins-ssh-slave

You'll then be able to connect this slave using ssh-slaves-plugin as "jenkins" with the matching private key.

⁠How to use this image with Docker Plugin

To use this image with Docker Plugin⁠, you need to pass the public SSH key using environment variable JENKINS_SLAVE_SSH_PUBKEY and not as a startup argument.

In Environment field of the Docker Template (advanced section), just add:

JENKINS_SLAVE_SSH_PUBKEY=<YOUR PUBLIC SSH KEY HERE>

Don't put quotes around the public key. You should be all set.

⁠On DockerHub / GitHub


Tag summary

Content type

Image

Digest

Size

308.9 MB

Last updated

almost 7 years ago

docker pull rlagutinhub/docker.jenkins-ssh-slave