Jenkins Customize
Two forms of the distribution that you can find from here: docker image and jenkins.war file. All distributions include the following features:
Image
An example of running it:
docker run --rm -p 8080:8080 jenkinszh/jenkins-zh:lts
You can mount the volume by the following command:
docker run -u root -v /var/jenkins/data:/var/jenkins_home -p 8080:8080 jenkinszh/jenkins-zh:lts
Find all tags by click here。
war
Find all jenkins.war files by click here.
Below are some out-of-the-box solutions which I call them formulas
Formula |
File Name |
Image |
Configuration as Code |
jenkins-zh.war |
jenkinszh/jenkins-zh |
Configuration as Code + Pipeline |
jenkins-pipeline.war |
jenkinszh/jenkins-pipeline |
CASC + Pipeline + K8s |
jenkins-k8s.war |
jenkinszh/jenkins-k8s:2.204.5 |
BlueOcean + Multi-branch Pipeline |
blueocean-zh.war |
jenkinszh/blueocean-zh:2.204.5 |
Multi-branch Pipeline(GitHub、GitLab、Bitbucket) |
jenkins-multi-pipeline-zh.war |
jenkinszh/jenkins-multi-pipeline-zh:2.204.5 |
Want to contribute a formula? Please learn how to create it from here.
Kubernetes
We suggest to use Helm Charts in Kubernetes, below are the example command of install Jenkins in a single-node cluster:
helm repo add stable https://kubernetes-charts.storage.googleapis.com
helm install jenkins stable/jenkins \
--set master.image=jenkinszh/jenkins-k8s \
--set master.tag=2.204.5 \
--set master.imagePullPolicy=IfNotPresent \
--set persistence.enabled=false \
--set master.serviceType=NodePort
You can get more details about how to configure Jenkins chart.
References
Jenkins Official Docker Hub
Feedback
Any kind of contributions are very appreciate.