summaryrefslogtreecommitdiffstats
path: root/activiti-extension/src/main/docker/bin/entrypoint.sh
diff options
context:
space:
mode:
authorZhaoxing <meng.zhaoxing1@zte.com.cn>2017-09-29 14:09:19 +0800
committerFu Jinhua <fu.jinhua@zte.com.cn>2017-09-29 06:46:09 +0000
commitdd52dc299229243fa34439cf8861dffd359e3e86 (patch)
tree654d45e55ade420b6508e9ad9075b3318259d7da /activiti-extension/src/main/docker/bin/entrypoint.sh
parent687a149af6ff59fba9e614e060a598392b68db6b (diff)
Fix the docker build error for vfc-nfvo-wfengine
Change-Id: I976ba9df7fb7145563df31f1e6ee3449279fe382 Issue-id: VFC-445 Signed-off-by: Zhaoxing <meng.zhaoxing1@zte.com.cn>
Diffstat (limited to 'activiti-extension/src/main/docker/bin/entrypoint.sh')
-rw-r--r--activiti-extension/src/main/docker/bin/entrypoint.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/activiti-extension/src/main/docker/bin/entrypoint.sh b/activiti-extension/src/main/docker/bin/entrypoint.sh
new file mode 100644
index 0000000..703b059
--- /dev/null
+++ b/activiti-extension/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 ./startup.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