Fix for OOM and Helm
[sdc/dcae-d/dt-be-main.git] / docker / docker_be / startup.sh
1 #!/bin/sh
2 #set -x
3
4 # Run chef-solo for configuration
5 cd /var/opt/dcae-be/chef-solo
6 chef-solo -c solo.rb -E ${ENVNAME} --log_level "debug" --logfile "/tmp/Chef-Solo.log"
7
8 status=$?
9 if [ $status != 0 ]; then
10   echo "[ERROR] Problem detected while running chef. Aborting !"
11   exit 1
12 fi
13
14 # Execute Jetty
15 cd /var/lib/jetty
16 /docker-entrypoint.sh &
17
18 while true; do sleep 2; done
19 #exec "$@";