Sign inSign up

andrewgortonuk/dockerjenkinswithgit

By andrewgortonuk

•Updated over 11 years ago

Image
2

500K+

andrewgortonuk/dockerjenkinswithgit repository overview

⁠Jenkins with Git pre-installed

Based upon the official Jenkins⁠ image, this simply adds the scm-api and git-client plugins.

⁠Configuring

The base image specifies that you can create a plugins.txt and use that, but the Docker Hub's automated build didn't appear to be downloading all the plugins.

So the answer is to ADD the plugins directly to /usr/share/jenkins/ref/plugins directory, making sure they've got the right permissions for Jenkins.

To help you with this, the build_dockerfile.sh file creates a Dockerfile based upon plugins.txt, ADDing each additional plugin manually.

⁠Building

Edit plugins.txt

# Comments are ignored, as are empty lines
#<plugin_name>:<version>
ansicolor:latest

Now create the Dockerfile

./build_dockerfile.sh

⁠Running

docker pull andrewgortonuk/dockerjenkinswithgit:latest
docker run -p 8080:8080 andrewgortonuk/dockerjenkinswithgit:latest

Tag summary

Content type

Image

Digest

sha256:b83a9fab5…

Size

377.9 MB

Last updated

almost 11 years ago

docker pull andrewgortonuk/dockerjenkinswithgit