Apache Groovy is a powerful, optionally typed and dynamic language, with static-typing and static compilation capabilities, for the Java platform aimed at improving developer productivity thanks to a concise, familiar and easy to learn syntax. It integrates smoothly with any Java program, and immediately delivers to your application powerful features, including scripting capabilities, Domain-Specific Language authoring, runtime and compile-time meta-programming and functional programming.
%%LOGO%%
Note that if you are mounting a volume and the uid running Docker is not 1000
, you should run as user root
(-u root
).
docker run -it --rm groovy
docker run --rm -v "$PWD":/home/groovy/scripts -w /home/groovy/scripts %%IMAGE%% groovy <script> <script-args>
The local Grapes cache can be reused across containers by creating a volume and mounting it in /home/groovy/.groovy/grapes
.
docker volume create --name grapes-cache
docker run --rm -it -v grapes-cache:/home/groovy/.groovy/grapes %%IMAGE%%