Sign inSign up

adsmurai/gradle

By adsmurai

•Updated over 8 years ago

Dockerized Gradle with configurable UID & GID

Image
2

581

adsmurai/gradle repository overview

⁠Adsmurai's Dockerized Gradle

You can find the published images in our own docker repository⁠, and the source code in our Github repository⁠.

This version of dockerized gradle is inspired by the official gradle's docker repository⁠, but it has some extra nice features, like UIDs and GIDs mapping.

⁠Usage instructions

For example, if you want to execute the build task

docker run                                                  \
       --rm                                                 \
       -it                                                  \
       -v /home/user/sourcedir/:/home/apprunner/playground  \
       -e HOST_USER_ID=$(id -u)                             \
       -e HOST_GROUP_ID=$(id -g)                            \
       adsmurai/gradle:4.4-jdk8                             \
       gradle build

⁠Extra tips

⁠Gradle's cache

In order to use the Gradle's cache, you can also mount a specific volume with the option -v volume_name:/home/apprunner/.gradle.

We recommend to NOT mapping the equivalent directory inside the host (-v /home/host_username/.gradle:/home/apprunner/.gradle) because the custom entry point of this image explicitly disables the Gradle's daemon modifying the settings files inside this directory.

Tag summary

Content type

Image

Digest

Size

139.5 MB

Last updated

over 8 years ago

docker pull adsmurai/gradle:4.5-jdk8