functional, jenkins/jenkins:lts-jdk17
docker image that is in dark mode by default and contains all relevant dependencies that make it easy to have Jenkins pipelines build and run docker images & containers. It also ensures that the Built-in Node has 0 executors.
I personally use this for my other project, Focust.
Based on liatrio/alpine-jenkins, hence the same Apache 2.0 License. However, it is modified to work with jenkins/jenkins:lts-jdk17
instead of jenkins/jenkins:2.154-alpine
as well as to fit with my needs.
Here is the list of plugins that come pre-packaged with this image:
- Dark Theme
- Groovy
- Blue Ocean
- Build Environment
- Folders
- Config File Provider
- Credentials
- Credentials Binding
- Pipeline
- Pipeline Utility Steps
- Git
- Docker
- Docker Slaves
- Docker Pipeline
- Environment Injector
- HTTP Request
- Job DSL
- Job Configuration History
- Naginator
- PAM Authentication
- Nexus Artifact Uploader
- SonarQube Scanner
- Subversion
This list is subject to change in future commits.
Here is the list of supported tags for this image:
latest
If you want to build this image yourself, you first need to install a Shadow debian package and place it inside of the ./resources/
directory as shadow-amd64.deb
(using any other name for this deb
package will require a modification to the Dockerfile
).
One can then build the image, as follows:
docker build -t allandeboe/jenkins-jdk17:latest .
First make sure that there is a volume called jenkins_home
. If it hasn't been created, you can run the following command:
docker volume create jenkins_home
Finally, to create the container, you simply have the run the docker container exactly as follows:
docker run --name jenkins \
-p 8080:8080 -p 50000:50000 \
-v jenkins_home:/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
--restart=always \
allandeboe/jenkins-jdk17:latest
And you can access Jenkins through https://localhost:8080
. The login credentials are admin
for the username and admin
for the password (you can change this by modifying the resources/basic-security.groovy
file, although it requires re-building the image and container)