Public | Automated Build

Last pushed: 2 years ago
Short Description
docker jenkins based on oracle jdk 8
Full Description

Improved Docker Jenkins Image based on Alpine

Improved version of
Docs copied over from origin:


Jenkins Docker image

The Jenkins Continuous Integration and Delivery server based on Alpine Linux image with Oracle JDK 8.

<img src=""/>


Simple invocation:

docker run -d --publish 8080:8080 cgswong/jenkins

The volume /var/lib/jenkins stores plugins, data and configuration. This can be mounted for further customization and/or data backup.
You will probably want to make that a persistent volume (recommended):

Backing up data

Treat the /var/lib/jenkins directory as you would a database, i.e. make sure you do backups to keep your important data safe. You can use docker cp $PWD:/var/lib/jenkins to extract the data.

Attaching build executors

You can run builds on the master (out of the box) but if you want to attach build slave servers: make sure you map the port --publish 50000:50000 which will be used when you connect a slave agent. A good example Docker build container is Maestrodev, it has lots of good tools installed.

Passing parameters

You might need to customize the JVM running Jenkins, typically to pass system properties or tweak heap memory settings. Just pass these as parameters on the command line per normal:

docker run --name jenkins --publish 8080:8080 cgswong/jenkins -Dhudson.footerURL=

The same goes for passing Jenkins launcher parameters:

docker run --name jenkins --publish 8080:8080 cgswong/jenkins --version

This will dump Jenkins version, just like when you run Jenkins as an executable war.


This image comes with the following useful plugins installed:

  • greenballs
  • credentials
  • ssh-credentials
  • ssh-agent
  • git-client
  • git
  • github
  • github-api
  • ghprb
  • github-oauth
  • scm-api
  • postbuild-task
Docker Pull Command
Source Repository