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.5.1-jdk17-jammy docker pull icr.io/ibmz/gradle@sha256:bf6b16cd4500ccac64dcc53d68b4e356411c7d4e164b77058786d175b6b550c9 Vulnerability Report01-02-2025
7.5.0-jdk17-jammy docker pull icr.io/ibmz/gradle@sha256:7a0805c8555a55e7a2dc626348d4217cc0a6c3ef9034efc026a482edffc1b948 Vulnerability Report01-02-2025
7.4.2-jdk17-jammy docker pull icr.io/ibmz/gradle@sha256:48cefaac2eac65c44f35a36a5e0940deeccd898f9c681aa451a1fb3ad15ef1ae Vulnerability Report01-02-2025
8.0.2-jdk17-jammy docker pull icr.io/ibmz/gradle@sha256:3bd33df6939cf55f3d40015f621e9de15e4e23bd2437d3d5e79b69d9ab67416b Vulnerability Report01-02-2025
7.4.1-jdk17 docker pull icr.io/ibmz/gradle@sha256:275d24b6af8ca352a270536dd9c946552cdb920d6ba7a4055ca6c21c965a3383 Vulnerability Report01-02-2025
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}