Maven Docker in Docker
An official Maven Debian + Docker + CERN CA certificates image to perform Docker-in-Docker builds on CERN Gitlab.
The image build is provided :
- As a baseline image, with default build arguments hard-coded in the provided Dockerfile. Consult the Dockerfile to know the current configuration.
- As a Maven-enabled image with support for branching, parameters and releases (thank to the maven-dockerfile-plugin).
Important Note : The Gitlab CI only performs a baseline build in the master branch. The baseline is used to rebuild all other images so pick a sensible default.
How to update the baseline
Simply update the Dockerfile build arguments' default values, and commit to the master branch. NOTE : The baseline is used to rebuild all other images so pick a sensible default.
How to provide alternate images
Using gitflow, you can create a new support branch, it will automatically be picked up and deployed as a new docker image. To name your support branch, please follow the convention -- (with or without the SNAPSHOT suffix).
For instance :
- 3.5.3-19.0.3-jdk8
- 3.6.0-19.0.3.2-jdk11