aboutsummaryrefslogtreecommitdiffstats
path: root/packages/policy-api-docker/src/main/docker/policy-api.sh
diff options
context:
space:
mode:
authorshaoqiu <tim.huang@est.tech>2019-06-25 06:10:52 +0000
committershaoqiu <tim.huang@est.tech>2019-06-25 06:10:52 +0000
commitd0fe049e2575b1192fba6854171637cd6655cd02 (patch)
tree5025efe31970f3e040dcf1509090c0f1692102d5 /packages/policy-api-docker/src/main/docker/policy-api.sh
parent5b830d88ba20f1655d0fcd9f1de05cd9c2d0a7c1 (diff)
Remove POLICY_API_HOME in Dockerfile
To use POLICY_HOME not POLICY_XXX_HOME Issue-ID: POLICY-1702 Change-Id: I14e3415f1ee00cd7a82b0d1768eb6c1ab8775424 Signed-off-by: shaoqiu <tim.huang@est.tech>
Diffstat (limited to 'packages/policy-api-docker/src/main/docker/policy-api.sh')
-rw-r--r--packages/policy-api-docker/src/main/docker/policy-api.sh6
1 files changed, 3 insertions, 3 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 dad02fdf..6acedb10 100644
--- a/packages/policy-api-docker/src/main/docker/policy-api.sh
+++ b/packages/policy-api-docker/src/main/docker/policy-api.sh
@@ -2,6 +2,7 @@
#
# ============LICENSE_START=======================================================
# Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+# Modifications Copyright (C) 2019 Nordix Foundation.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -20,7 +21,6 @@
#
JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk/
-POLICY_API_HOME=/opt/app/policy/api
KEYSTORE="${POLICY_HOME}/etc/ssl/policy-keystore"
KEYSTORE_PASSWD="Pol1cy_0nap"
TRUSTSTORE="${POLICY_HOME}/etc/ssl/policy-truststore"
@@ -35,9 +35,9 @@ fi
if [ -z "$CONFIG_FILE" ]
then
- CONFIG_FILE="$POLICY_API_HOME/etc/defaultConfig.json"
+ CONFIG_FILE="$POLICY_HOME/etc/defaultConfig.json"
fi
echo "Policy api config file: $CONFIG_FILE"
-$JAVA_HOME/bin/java -cp "$POLICY_API_HOME/etc:$POLICY_API_HOME/lib/*" -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/*" -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