summaryrefslogtreecommitdiffstats
path: root/src/main/bin
diff options
context:
space:
mode:
authorMichael Arrastia <MArrasti@amdocs.com>2018-07-12 13:37:43 +0100
committerMichael Arrastia <MArrasti@amdocs.com>2018-07-12 14:01:38 +0100
commit7d3dcdbff807ba1facb84f94ac39ff91bf410b29 (patch)
tree0f72ce4d3a15e8c77ec1b0b81865cd942176d454 /src/main/bin
parent3105617e4686774f98b398ee8d6f8a7bd021f86a (diff)
Migrate Spike code to ONAP
Move what was originally an Open ECOMP microservice into ONAP. This is primarily a code move and includes: - removal of AJSC and replacement with latest version of Spring Boot - alignment with ONAP standards - license headers - package renaming - FOSSology scan completed Further work is required to add JJB and OOM. Change-Id: I305c8407256bf2dbcc816f34f031f92eafd6ef5a Issue-ID: AAI-1374 Signed-off-by: Michael Arrastia <MArrasti@amdocs.com>
Diffstat (limited to 'src/main/bin')
-rw-r--r--src/main/bin/start.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/bin/start.sh b/src/main/bin/start.sh
new file mode 100644
index 0000000..05b685e
--- /dev/null
+++ b/src/main/bin/start.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+APP_HOME="/opt/app/spike"
+
+if [ -z "$CONFIG_HOME" ]; then
+ echo "CONFIG_HOME must be set in order to start up process"
+ exit 1
+fi
+
+if [ -z "$SERVICE_BEANS" ]; then
+ echo "SERVICE_BEANS must be set in order to start up process"
+ exit 1
+fi
+
+if [ -z "$KEY_STORE_PASSWORD" ]; then
+ echo "KEY_STORE_PASSWORD must be set in order to start up process"
+ exit 1
+fi
+
+PROPS="-DAPP_HOME=$APP_HOME"
+PROPS="$PROPS -DCONFIG_HOME=$CONFIG_HOME"
+PROPS="$PROPS -Dlogging.config=$APP_HOME/bundleconfig/etc/logback.xml"
+PROPS="$PROPS -DKEY_STORE_PASSWORD=$KEY_STORE_PASSWORD"
+JVM_MAX_HEAP=${MAX_HEAP:-1024}
+
+set -x
+exec java -Xmx${JVM_MAX_HEAP}m $PROPS -jar ${APP_HOME}/spike.jar