Sign inSign up

gempesaw/jenkins-agent-docker

By gempesaw

•Updated over 9 years ago

An image for jenkins agents to use that has docker and kubectl installed, intended for use with helm

Image
0

444

gempesaw/jenkins-agent-docker repository overview

⁠Jenkins Agent for Docker outside of Docker

Custom Jenkins JNLP agent for the Kubernetes Plugin⁠ for Jenkins based on the official JNLP agent image⁠ from Jenkins.

⁠Differences

From the base JNLP image, docker and kubectl are added so they can be called within a Jenkins Pipeline.

Additionally, at http://jenkins-ip/configure⁠, you must set an env var for the docker client version to match that of helm⁠'s stable/jenkins chart.

DOCKER_CLIENT_VERSION=1.23

Finally, you must add volume mounts to help the agent find the host's docker and find the scm workspace.

/var/run/docker.sock    --> /var/run/docker.sock
/home/jenkins/workspace --> /home/jenkins/workspace

These changes are already configured in https://github.com/Sharecare/helm-charts/jenkins-dood⁠

Tag summary

Content type

Image

Digest

Size

152.7 MB

Last updated

over 9 years ago

docker pull gempesaw/jenkins-agent-docker