blob: e41aff40f0654ac604c5d20ee49bfb0de1242eda [file] [log] [blame]
Yuli Shlosberg958c32d2018-02-15 12:04:46 +02001#!/bin/sh
2
ys969316a9fce2020-01-19 13:50:02 +02003export JAVA_OPTIONS=" -Dconfig.home=${JETTY_BASE}/config \
4 -Dlog.home=${JETTY_BASE}/logs \
5 -Dlogback.configurationFile=${JETTY_BASE}/config/catalog-be/logback.xml \
6 -Dconfiguration.yaml=${JETTY_BASE}/config/catalog-be/configuration.yaml \
7 -Dartifactgenerator.config=${JETTY_BASE}/config/catalog-be/Artifact-Generator.properties \
8 -Donboarding_configuration.yaml=${JETTY_BASE}/config/onboarding-be/onboarding_configuration.yaml \
9 -Djavax.net.ssl.trustStore=${JETTY_BASE}/etc/org.onap.sdc.trust.jks \
10 -Djavax.net.ssl.trustStorePassword=].][xgtze]hBhz*wy]}m#lf* \
11 -Djetty.console-capture.dir=${JETTY_BASE}/logs \
12 ${JAVA_OPTIONS} "
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020013
14cd /root/chef-solo
15chef-solo -c solo.rb -E ${ENVNAME}
16
ys969316a9fce2020-01-19 13:50:02 +020017status=$?
18if [ $status != 0 ]; then
19 echo "[ERROR] Problem detected while running chef. Aborting !"
20 exit 1
21fi
22
23# Execute Jetty
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020024cd /var/lib/jetty
25/docker-entrypoint.sh &
26
ys969316a9fce2020-01-19 13:50:02 +020027exec "$@";
28
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020029while true; do sleep 2; done
30
31
32