blob: 4f5ef8ca2e8d7fe1c9978de26feabd410ef14ffa [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 \
k.kedrona22105e2020-03-25 15:29:42 +010010 -Djavax.net.ssl.trustStorePassword=z+KEj;t+,KN^iimSiS89e#p0 \
ys969316a9fce2020-01-19 13:50:02 +020011 -Djetty.console-capture.dir=${JETTY_BASE}/logs \
12 ${JAVA_OPTIONS} "
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020013
MichaelMorrisa2abf6e2020-03-10 12:37:48 +000014cd /var/lib/jetty/chef-solo
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020015chef-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