Add run.sh for starting the micro-service 83/31583/1
authorYuanHu <yuan.hu1@zte.com.cn>
Tue, 13 Feb 2018 08:34:27 +0000 (16:34 +0800)
committerYuanHu <yuan.hu1@zte.com.cn>
Tue, 13 Feb 2018 08:34:27 +0000 (16:34 +0800)
Add shell script (run.sh) for starting the micro-service

Issue-ID: SDC-408

Change-Id: Ieb2aee701c82be5a3f7986e72eda8f7505e30997
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
distribution/src/main/assembly/bin/run.sh [new file with mode: 0644]

diff --git a/distribution/src/main/assembly/bin/run.sh b/distribution/src/main/assembly/bin/run.sh
new file mode 100644 (file)
index 0000000..15f9659
--- /dev/null
@@ -0,0 +1,31 @@
+#
+# Copyright (c) 2017 ZTE Corporation.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# and the Apache License 2.0 which both accompany this distribution,
+# and are available at http://www.eclipse.org/legal/epl-v10.html
+# and http://www.apache.org/licenses/LICENSE-2.0
+#
+# Contributors:
+#     ZTE - initial API and implementation and/or initial documentation
+#
+
+DIRNAME=`dirname $0`
+RUNHOME=`cd $DIRNAME/; pwd`
+echo @RUNHOME@ $RUNHOME
+
+echo @JAVA_HOME@ $JAVA_HOME
+JAVA="$JAVA_HOME/bin/java"
+echo @JAVA@ $JAVA
+main_path=$RUNHOME/../
+cd $main_path
+JAVA_OPTS="-Xms50m -Xmx128m"
+port=12345
+#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=$port,server=y,suspend=n"
+echo @JAVA_OPTS@ $JAVA_OPTS
+
+class_path="$main_path/:$main_path/sdc-workflow-designer.jar"
+echo @class_path@ $class_path
+
+"$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.sdc.workflowdesigner.WorkflowDesignerApp server "$main_path/conf/workflow-designer.yml"
+