Merge pull request #1001 from keeganwitt/gradle

added note about mounting volumes with uid other than 1000
This commit is contained in:
Tianon Gravi 2017-10-09 10:10:44 -07:00 committed by GitHub
commit 949b80ef91
1 changed files with 3 additions and 1 deletions

View File

@ -6,10 +6,12 @@
# How to use this image
Note that if you are mounting a volume and the uid running Docker is not `1000`, you should run as user `root` (`-u root`).
## 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:alpine gradle <gradle-task>`
`docker run --rm -v "$PWD":/home/gradle/project -w /home/gradle/project gradle:latest gradle <gradle-task>`
**Note: Java 9 support is experimental**