Docker in docker with Gradle. Used for CI.
Find the base image with Gradle, OS and JDK combo you would like to use here https://hub.docker.com/_/gradle/ & see the Howto section bellow.
Example based on Gradle 8.2.1 with Alpine Linux and JDK 17
-
Touch the
Dockerfilein this repo accordingly (i.e. usegradle:8.2.1-jdk17-alpineinFROM) -
Build and push
docker build . -t dtforce/dind-gradle:v8.2.1-alp-jdk17-py
docker push dtforce/dind-gradle:v8.2.1-alp-jdk17-py- Use the built image in you CI/CD pipeline and enjoy