aboutsummaryrefslogtreecommitdiffstats
path: root/docker/startup.sh
diff options
context:
space:
mode:
authorEran (ev672n), Vosk <ev672n@att.com>2018-08-07 14:15:05 +0300
committerEran (ev672n), Vosk <ev672n@att.com>2018-08-07 14:15:05 +0300
commitb9708a7c3cfaf5767992a2b15180e7b85c459242 (patch)
tree076e19ea52232232e9060a9d7e074947a4a49508 /docker/startup.sh
parentcc32bd38d72e5c1c92048657083952d3e45c1819 (diff)
adding the dcae dt code
Adding DCAE-dt code Change-Id: Id6b779db9d24e10825fb97ad5fd46f41e65e6738 Issue-ID: SDC-1614 Signed-off-by: Eran (ev672n), Vosk <ev672n@att.com>
Diffstat (limited to 'docker/startup.sh')
-rw-r--r--docker/startup.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/docker/startup.sh b/docker/startup.sh
new file mode 100644
index 0000000..4f363da
--- /dev/null
+++ b/docker/startup.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+#set -x
+
+# Run chef-solo for configuration
+cd /var/opt/dcae-dt/chef-solo
+chef-solo -c solo.rb -E ${ENVNAME} --log_level "debug" --logfile "/opt/logs/dcae-dt/chef-dcae-dt.log"
+
+status=$?
+if [ $status != 0 ]; then
+ echo "[ERROR] Problem detected while running chef. Aborting !"
+ exit 1
+fi
+
+# Execute Jetty
+cd /var/lib/jetty
+/docker-entrypoint.sh &
+
+while true; do sleep 2; done
+