Merge pull request #863 from keeganwitt/groovy
document how to reuse Grapes cache
This commit is contained in:
commit
6e1bb4e53c
|
|
@ -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
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue