Browse Source

Merge pull request #863 from keeganwitt/groovy

document how to reuse Grapes cache
yosifkit 8 years ago
parent
commit
6e1bb4e53c
1 changed files with 9 additions and 0 deletions
  1. 9 0
      groovy/content.md

+ 9 - 0
groovy/content.md

@@ -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
+```