e6f6c96eb03b1ac1884721c3032e911638c862ca
[vfc/nfvo/wfengine.git] / activiti-extension / src / main / docker / bin / entrypoint.sh
1 #!/usr/bin/env sh
2 # $0 is a script name, 
3 # $1, $2, $3 etc are passed arguments
4 # $1 is our command
5 CMD=$1
6 case "$CMD" in  
7   "dev" )
8     ;;
9   "start" )
10     # we can modify files here, using ENV variables passed in 
11     # "docker create" command. It can't be done during build process.
12     exec ./bin/startup.sh
13     ;;
14    * )
15     # Run custom command. Thanks to this line we can still use 
16     # "docker run our_image /bin/bash" and it will work
17     exec $CMD ${@:2}
18     ;;
19 esac