UNCLASSIFIED

README.md 1.66 KB
Newer Older
gavin.scallon's avatar
gavin.scallon committed
1 2
# gradle-jre8

gavin.scallon's avatar
gavin.scallon committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#### Description from the official Gradle project:
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.

#### Gradle User Manual
Please refer to the following documentation for more information on using Gradle:

https://docs.gradle.org/current/userguide/userguide.html

## Downloading and building the Gradle image from the Iron Bank
1. Navigate to the Gradle page on Iron Bank and download the tar file of the Gradle image. 
2. Navigate to the download folder and run `docker load -i <gradle-img-download-name>.tar` or `podman load -i <gradle-img-download-name>.tar` in order to generate the build for container use (substitute the actual name of the download for "gradle-img-download-name"). 

## Building a Gradle project/running the Gradle container
Run this from the directory of the Gradle project you want to build:

```docker run --rm -u gradle -v "$PWD":/opt/gradle/project -w /opt/gradle/project gradle gradle <gradle-task>```

Note the above command runs using uid/gid 1000 (user gradle) to avoid running as root.

# Notes
The container uses the `gradle` user profile when running the image.

sean.melissari's avatar
sean.melissari committed
25
The container does not expose any ports.