Return to Image List

gradle

gradle

Gradle is a build tool with a focus on build automation and support for multi-language development. If you are building, testing, publishing, and deploying software on any platform, Gradle offers a flexible model that can support the entire development lifecycle from compiling and packaging code to publishing web sites. Gradle has been designed to support build automation across multiple languages and platforms including Java, Scala, Android, C/C++, and Groovy, and is closely integrated with development tools and continuous integration servers including Eclipse, IntelliJ, and Jenkins.

See gradle.org for more information

This image is built by IBM to run on the IBM Z architecture and is not affiliated with any other community that provides a version of this image.


License

View license information here

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.


Versions

Use the pull string below for the version of this image you require.
7.4.1-jdk17 docker pull icr.io/ibmz/gradle@sha256:d318059fb3a469bd9e37ef4edcf376f03284f48a1df2ef6193f6b955cd568c90 Vulnerability Report04-30-2024
7.5.0-jdk17-jammy docker pull icr.io/ibmz/gradle@sha256:8734aade45e7bf0610cefbbb7dc8519bddae173776d3be3eda4122598ee73078 Vulnerability Report04-30-2024
7.5.1-jdk17-jammy docker pull icr.io/ibmz/gradle@sha256:716a37f0496e44d2dc95be7f2064715175d5045b8715afd80b091bcc32b705b1 Vulnerability Report04-30-2024
7.4.2-jdk17-jammy docker pull icr.io/ibmz/gradle@sha256:64bd63079527e74a0ccf6613814bbc9046659a07d5550ea617e8e04b18bd8933 Vulnerability Report04-30-2024
8.0.2-jdk17-jammy docker pull icr.io/ibmz/gradle@sha256:6381306225c3846ac8301de65adc949a39baedb55ea5273cca20c188090005ff Vulnerability Report04-30-2024
Version Pull String Security (IBM Cloud) Created

Usage Notes

Create a Dockerfile in your build directory that uses the Gradle base image to run a gradle-task on your project by replacing {gradle-task} with the desired task name.

FROM icr.io/ibmz/gradle:[version]
WORKDIR /home/gradle/project
COPY . .
RUN chown -R gradle ../*
USER gradle
CMD [ "gradle", "{gradle-task}" ]

Alternatively you can use the base image in conjunction with a volume that holds the source of your project. Replace the {gradle-volume} and {gradle-task} with your volume and your desired gradle task.

docker run -it --name gradle-build -v {gradle_volume}:/home/gradle icr.io/ibmz/gradle:[version] gradle {gradle-task}