generated from gCubeCI/Pipeline-Docker-Template
|
|
||
|---|---|---|
| Dockerfile | ||
| Jenkinsfile | ||
| README.md | ||
| plugins.txt | ||
README.md
Jenkins Image build repository
This repository contains the Dockerfile and plugin list to build the jenkins image.
The plugins are installed directly during the build phase. To update the plugins, just re-build the image.
IMPORTANT: the build must be done in you laptop and, then, pushed on the harbor repository (see HOW TO BUILD)
HOW TO BUILD:
- Execute the following command to tag and build the image:
docker build -t jenkins-image:{TAG}
available tags:
- v17.0: tag of the java 17 version of jenkins
- latest: tag o the latest version of jenkins used in production
HOT TO PUBLISH ON HARBOR:
- First, login into D4Science Harbor registry with a robot account of the jenkins-infrascience project
docker login harbor.d4science.org/jenkins-infrascience
- Tag the built image for harbor
docker tag jenkins-image:{TAG} harbor.d4science.org/jenkins-infrascience/jenkins-image:{TAG}
- Push the image into the harbor repository
docker push harbor.d4science.org/jenkins-infrascience/jenkins-image:{TAG}