Public Repository

Last pushed: 2 years ago
Short Description
Jenkins CI/CD Build Pipeline
Full Description

This is based off of the official dockerfile/jenkins image but with support for Java 8 applications. The source code for this image can be found at Github Repo

Jenkins on Docker

Jenkins is a great tool for doing a job or a task. But it is limited out of the box in terms of supporting pipelines. But with the addition of a few plugins it has great support for build pipelines. The following plugins help in creating a build pipeline

  • Build Pipeline plugin
  • Delivery Pipeline plugin
  • Build Name Setter plugin
  • Clone workspace SCM plugin
  • Copy Artifact plugin
  • Email Extension plugin
  • GIT plugin plugin
  • Gradle plugin
  • Maven plugin
  • Parametrized Trigger plugin
  • PMD
  • Performance plugin

Quick Start

The following command should get you started pretty quickly. It has most of the pipeline steps covered and all you need to do is fill in the details.

docker run -p 8080:8080 vgadang/jenkins

Persistent data

The above command will create transient data that will be cleaned up when the docker conatiner is stopped. It may be ok for testing, but not so great for a real environment. So you may want to mount the jenkins home to the hosts directory. The image defines the jenkins home directory as /var/jenkins_home

The following command will persist the data in the host.

docker run -d -p 8080:8080 -v /data/servers/jenkins/jenkins_home:/var/jenkins_home --name=jenkins vgadang/jenkins
Docker Pull Command
Owner
vgadang