document how to reuse Grapes cache

This commit is contained in:
Keegan Witt 2017-03-23 23:03:27 -04:00
parent 18a2111fde
commit 89fef87f4e
1 changed files with 9 additions and 0 deletions

View File

@ -13,3 +13,12 @@
## Running a Groovy script
`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
```