At the end you will get a v2.489 Jenkins instance and a Docker Dind that together gives you the ability to create new containers to be used as agents in your CI/CD pipeline flow.
Also, there is a optional step at the end to get Metrics stack.
These are automatically configure installed during build phase: plugins/README.md
Use the following commands to build and get all services up and running.
wget -O jenkins-docker.zip https://github.com/aacoliveira/jenkins-docker/archive/refs/heads/main.zip
unzip jenkins-docker.zip
cd jenkins-docker-main/Download all images:
docker compose pullBuild the Jenkins image:
docker compose buildThe -d flag can be used on the following command to run in detached mode and free your terminal.
Just Run:
docker compose upTo see if went well:
docker container lsThere must be exactly two containers named jenkins and dind.
Exec the following command:
docker container exec -it jenkins cat /var/jenkins_home/secrets/initialAdminPassword| Tool | Location | Credentials |
|---|---|---|
| Jenkins UI | http://localhost:8080 | admin / initial password obtained earlier |
See metrics/README.md to more instructions.