Docker in docker with Gradle. Used for CI.
-
Trivial: If you do not want/need to create your own special gradle-jdk combo, feel free to grab any of the images that we have created and pushed over the years here https://hub.docker.com/r/dtforce/dind-gradle/tags
-
Easy (still): If none of our combos suit your needs, find the base image with Gradle, OS and JDK combo you would like to use here https://hub.docker.com/_/gradle/ & see the
Howtosection bellow.
Example based on Gradle 8.10.2 with Alpine Linux and JDK 17
-
Touch the
Dockerfilein this repo accordingly (i.e. usegradle:8.10.2-jdk17-alpineinFROM) -
Build and push (change the
dtforcefor your own dockerhub organization)
docker build . -t dtforce/dind-gradle:v8.10.2-alp-jdk17-py
docker push dtforce/dind-gradle:v8.10.2-alp-jdk17-py- Use the built image in you CI/CD pipeline and enjoy