Sign inSign up

dexec/groovy

By dexec

•Updated almost 11 years ago

Image
1

927

dexec/groovy repository overview

⁠Docker Exec Image: Groovy

A Dockerfile describing an container capable of executing Groovy source files.

⁠Build

git clone https://github.com/docker-exec/groovy.git
docker build -t dexec/groovy .

⁠Usage

In a directory containing a script e.g. foo.groovy, run:

docker run -t --rm \
    -v $(pwd -P)/foo.groovy:/tmp/dexec/build/foo.groovy \
    dexec/groovy foo.groovy

⁠Passing arguments to the script

Arguments can be passed to the script using any of the following forms:

-a argument
--arg argument
--arg=argument

Each argument passed must be prefixed in this way, e.g.

docker run -t --rm \
    -v $(pwd -P)/foo.groovy:/tmp/dexec/build/foo.groovy \
    dexec/groovy foo.groovy \
    --arg='hello world' \
    --arg=foo \
    --arg=bar

Tag summary

Content type

Image

Digest

sha256:bae6889c1…

Size

143.3 MB

Last updated

over 11 years ago

docker pull dexec/groovy