Stone, Avi (as206k) | 9b2ceb3 | 2018-04-12 16:36:39 +0300 | [diff] [blame] | 1 | #!/bin/sh |
2 | set -x | ||||
3 | # Run chef-solo for configuration | ||||
4 | cd /var/opt/dcae-fe/chef-solo | ||||
5 | chef-solo -c solo.rb -E ${ENVNAME} --log_level "debug" --logfile "/tmp/Chef-Solo.log" | ||||
6 | |||||
7 | status=$? | ||||
8 | if [ $status != 0 ]; then | ||||
9 | echo "[ERROR] Problem detected while running chef. Aborting !" | ||||
10 | exit 1 | ||||
11 | fi | ||||
12 | |||||
13 | # Execute Jetty | ||||
14 | cd /var/lib/jetty | ||||
15 | /docker-entrypoint.sh & | ||||
16 | |||||
17 | #while true; do sleep 2; done | ||||
18 | exec "$@"; |