Public | Automated Build

Last pushed: a year ago
Short Description
Full Description


Supported tags and respective Dockerfile links

What is 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.

How to use this image

Building a Gradle project

Run this from the directory of the Gradle project you want to build.

docker run --rm -v "$PWD":/project -w /project --name gradle gradle:latest gradle <gradle-task>

Reusing the Gradle cache

The local Gradle cache can be reused across containers by creating a volume and mounting it in /root/.gradle.

docker volume create --name gradle-cache
docker run --rm -v gradle-cache:/root/.gradle gradle:latest gradle build

Instructions for a new Gradle release

  1. Change ENV GRADLE_VERSION in all Dockerfiles to new version number.
  2. Download the binary zip.
  3. Run sha256sum on the above zip and change the ARG GRADLE_DOWNLOAD_SHA256 in all Dockerfiles to new sha.
  4. Update .travis.yml.
  5. Update official-images (and docs if appropriate).


  • Docker
  • sha256sum

Docker Pull Command
Source Repository