Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 3 | export 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.kedron | a22105e | 2020-03-25 15:29:42 +0100 | [diff] [blame^] | 10 | -Djavax.net.ssl.trustStorePassword=z+KEj;t+,KN^iimSiS89e#p0 \ |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 11 | -Djetty.console-capture.dir=${JETTY_BASE}/logs \ |
| 12 | ${JAVA_OPTIONS} " |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 13 | |
MichaelMorris | a2abf6e | 2020-03-10 12:37:48 +0000 | [diff] [blame] | 14 | cd /var/lib/jetty/chef-solo |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 15 | chef-solo -c solo.rb -E ${ENVNAME} |
| 16 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 17 | status=$? |
| 18 | if [ $status != 0 ]; then |
| 19 | echo "[ERROR] Problem detected while running chef. Aborting !" |
| 20 | exit 1 |
| 21 | fi |
| 22 | |
| 23 | # Execute Jetty |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 24 | cd /var/lib/jetty |
| 25 | /docker-entrypoint.sh & |
| 26 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 27 | exec "$@"; |
| 28 | |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 29 | while true; do sleep 2; done |
| 30 | |
| 31 | |
| 32 | |