diff options
Diffstat (limited to 'wfenginemgrservice/src/main/docker/bin/entrypoint.sh')
-rw-r--r-- | wfenginemgrservice/src/main/docker/bin/entrypoint.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/wfenginemgrservice/src/main/docker/bin/entrypoint.sh b/wfenginemgrservice/src/main/docker/bin/entrypoint.sh new file mode 100644 index 0000000..f5d8d8c --- /dev/null +++ b/wfenginemgrservice/src/main/docker/bin/entrypoint.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env sh +# $0 is a script name, +# $1, $2, $3 etc are passed arguments +# $1 is our command +CMD=$1 +case "$CMD" in + "dev" ) + ;; + "start" ) + # we can modify files here, using ENV variables passed in + # "docker create" command. It can't be done during build process. + exec ./run.sh + ;; + * ) + # Run custom command. Thanks to this line we can still use + # "docker run our_image /bin/bash" and it will work + exec $CMD ${@:2} + ;; +esac
\ No newline at end of file |