summaryrefslogtreecommitdiffstats
path: root/packages/policy-api-docker
diff options
context:
space:
mode:
authorjhh <jorge.hernandez-herrero@att.com>2020-06-15 09:31:12 -0500
committerjhh <jorge.hernandez-herrero@att.com>2020-06-15 09:31:12 -0500
commit93f981138a1e2a4e72a1609437fdd6dec43d3b66 (patch)
tree960f60ff60770b5781f59085362c3523976f8487 /packages/policy-api-docker
parentd5fa90efb8a49875924a88094d1369b15e979b89 (diff)
get cert store passwords from env
Issue-ID: POLICY-2575 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Iba95d843d0cbf38e878915e6db742d5a74a03a5c
Diffstat (limited to 'packages/policy-api-docker')
-rw-r--r--packages/policy-api-docker/src/main/docker/policy-api.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/policy-api-docker/src/main/docker/policy-api.sh b/packages/policy-api-docker/src/main/docker/policy-api.sh
index 4963391c..81c5fe1c 100644
--- a/packages/policy-api-docker/src/main/docker/policy-api.sh
+++ b/packages/policy-api-docker/src/main/docker/policy-api.sh
@@ -22,10 +22,7 @@
JAVA_HOME=/usr/lib/jvm/java-11-openjdk/
KEYSTORE="${POLICY_HOME}/etc/ssl/policy-keystore"
-KEYSTORE_PASSWD="Pol1cy_0nap"
TRUSTSTORE="${POLICY_HOME}/etc/ssl/policy-truststore"
-TRUSTSTORE_PASSWD="Pol1cy_0nap"
-
if [ "$#" -eq 1 ]; then
CONFIG_FILE=$1
@@ -55,4 +52,4 @@ if [[ -f "${POLICY_HOME}"/etc/mounted/logback.xml ]]; then
cp -f "${POLICY_HOME}"/etc/mounted/logback.xml "${POLICY_HOME}"/etc/
fi
-$JAVA_HOME/bin/java -cp "${POLICY_HOME}/etc:${POLICY_HOME}/lib/*" -Dlogback.configurationFile=$POLICY_HOME/etc/logback.xml -Djavax.net.ssl.keyStore="$KEYSTORE" -Djavax.net.ssl.keyStorePassword="$KEYSTORE_PASSWD" -Djavax.net.ssl.trustStore="$TRUSTSTORE" -Djavax.net.ssl.trustStorePassword="$TRUSTSTORE_PASSWD" org.onap.policy.api.main.startstop.Main -c $CONFIG_FILE
+$JAVA_HOME/bin/java -cp "${POLICY_HOME}/etc:${POLICY_HOME}/lib/*" -Dlogback.configurationFile=$POLICY_HOME/etc/logback.xml -Djavax.net.ssl.keyStore="$KEYSTORE" -Djavax.net.ssl.keyStorePassword="${KEYSTORE_PASSWD:-Pol1cy_0nap}" -Djavax.net.ssl.trustStore="$TRUSTSTORE" -Djavax.net.ssl.trustStorePassword="${TRUSTSTORE_PASSWD:-Pol1cy_0nap}" org.onap.policy.api.main.startstop.Main -c $CONFIG_FILE