Merge pull request #863 from keeganwitt/groovy

document how to reuse Grapes cache
This commit is contained in:
yosifkit 2017-03-24 09:57:40 -07:00 committed by GitHub
commit 6e1bb4e53c
1 changed files with 9 additions and 0 deletions

View File

@ -13,3 +13,12 @@
## Running a Groovy script ## Running a Groovy script
`docker run --rm -v "$PWD":/scripts -w /scripts --name groovy groovy:alpine groovy <script> <script-args>` `docker run --rm -v "$PWD":/scripts -w /scripts --name groovy groovy:alpine groovy <script> <script-args>`
## Reusing the Grapes cache
The local Grapes cache can be reused across containers by creating a volume and mounting it in */home/groovy/.groovy/grapes*.
```console
docker volume create --name grapes-cache
docker run -it -v grapes-cache:/home/groovy/.groovy/grapes groovy:alpine
```