summaryrefslogtreecommitdiffstats
path: root/scripts/start-app.sh
diff options
context:
space:
mode:
authormukesh.paliwal <mukesh.paliwal1@huawei.com>2021-03-01 23:11:02 +0530
committermukesh.paliwal <mukesh.paliwal1@huawei.com>2021-03-01 23:11:02 +0530
commite025ede411c4811d4c899e1691ec0c97e26c2ed8 (patch)
treed13751f02591f09f5f6cfc031d25e850c8ced326 /scripts/start-app.sh
parent7b3dfeab01237ccb03ee40f5559b3172befcf1e5 (diff)
docker stage build failed in jenkins
Issue-ID: SO-3559 Signed-off-by: mukesh.paliwal <mukesh.paliwal1@huawei.com> Change-Id: I834dc0091d2353941e0e77bfe2dab693e11d42c1
Diffstat (limited to 'scripts/start-app.sh')
-rwxr-xr-xscripts/start-app.sh89
1 files changed, 0 insertions, 89 deletions
diff --git a/scripts/start-app.sh b/scripts/start-app.sh
deleted file mode 100755
index 54ed9ed..0000000
--- a/scripts/start-app.sh
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/sh
-#temprary condition
-if [ `id -u` = 0 ]
-then
- # Install certificates found in the /app/ca-certificates volume, if any.
-
- needUpdate=FALSE
-
- for certificate in `ls -1 /app/ca-certificates`; do
- echo "Installing $certificate in /usr/local/share/ca-certificates"
- # cp /app/ca-certificates/$certificate /usr/local/share/ca-certificates/$certificate
- needUpdate=FALSE
- done
-
- # Re-exec this script as the 'onap' user.
- this=`readlink -f $0`
- # exec su so -c "$this"
-fi
-
-touch /app/app.jar
-
-if [ ! -z "$DB_HOST" -a -z "$DB_PORT" ]; then
- export DB_PORT=3306
-fi
-
-if [ -z "${CONFIG_PATH}" ]; then
- export CONFIG_PATH=/app/config/override.yaml
-fi
-
-if [ "${SSL_DEBUG}" = "log" ]; then
- export SSL_DEBUG="-Djavax.net.debug=all"
-else
- export SSL_DEBUG=
-fi
-
-# Set java keystore and truststore options, if specified in the environment.
-
-jksargs=
-
-if [ ! -z "${KEYSTORE}" ]; then
- jksargs="$jksargs -Dmso.load.ssl.client.keystore=true"
- jksargs="$jksargs -Djavax.net.ssl.keyStore=$KEYSTORE"
- jksargs="$jksargs -Djavax.net.ssl.keyStorePassword=${KEYSTORE_PASSWORD}"
-fi
-
-if [ ! -z "${TRUSTSTORE}" ]; then
- jksargs="$jksargs -Djavax.net.ssl.trustStore=${TRUSTSTORE}"
- jksargs="$jksargs -Djavax.net.ssl.trustStorePassword=${TRUSTSTORE_PASSWORD}"
-fi
-
-if [ -z "${ACTIVE_PROFILE}" ]; then
- export ACTIVE_PROFILE="basic"
-fi
-
-jvmargs="${JVM_ARGS} -Dspring.profiles.active=${ACTIVE_PROFILE} -Djava.security.egd=file:/dev/./urandom -Dlogs_dir=${LOG_PATH} -Dlogging.config=/app/logback-spring.xml $jksargs -Dspring.config.additional-location=$CONFIG_PATH ${SSL_DEBUG} ${DISABLE_SNI}"
-
-
-read_properties(){
- while IFS="=" read -r key value; do
- case "${key}" in
- '#'*) ;;
- *)
- eKey=$(echo $key | tr '[:lower:]' '[:upper:]')
- export "$eKey"="$value"
- esac
- done <<-EOF
- $1
- EOF
-}
-
-
-
-if [ -n "${AAF_SSL_CERTS_ENABLED}" ]; then
-read_properties "$(head -n 4 /app/certs/.passphrases)"
-fi
-
-echo "JVM Arguments: ${jvmargs}"
-
-java ${jvmargs} -jar app.jar
-rc=$?
-
-echo "Application exiting with status code $rc"
-
-if [ ! -z "${EXIT_DELAY}" -a "${EXIT_DELAY}" != 0 ]; then
- echo "Delaying $APP exit for $EXIT_DELAY seconds"
- sleep $EXIT_DELAY
-fi
-
-exit $rc