summaryrefslogtreecommitdiffstats
path: root/engine-d-standalone/src/main/assembly
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-02 18:50:23 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-02 18:50:23 +0800
commitc0d73d17062da98a028754555f2a6a18273f5c64 (patch)
treefd5bcf9a7b70419d0195624dafe89f16db614a61 /engine-d-standalone/src/main/assembly
parent3347c066575bd9165627b7a01499e6c9c84af709 (diff)
Expose the host IP to the service
Expose the host IP to the service Change-Id: I298b6a333a654b73a8d35cf6e9a008a098a1fad7 Issue-ID: HOLMES-39 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'engine-d-standalone/src/main/assembly')
-rw-r--r--engine-d-standalone/src/main/assembly/bin/run.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine-d-standalone/src/main/assembly/bin/run.sh b/engine-d-standalone/src/main/assembly/bin/run.sh
index 7a2a120..9948a04 100644
--- a/engine-d-standalone/src/main/assembly/bin/run.sh
+++ b/engine-d-standalone/src/main/assembly/bin/run.sh
@@ -36,5 +36,8 @@ sed -i "s|url:.*|url: jdbc:mysql://$URL_JDBC/holmes|" "$main_path/conf/engine-d.
#ActiveMQ IP Configurtion
#sed -i "s|brokerIp:.*|brokerIp: $BROKER_IP|" "$main_path/conf/engine-d.yml"
+export SERVICE_IP=`hostname -i`
+echo SERVICE_IP=${SERVICE_IP}
+
"$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.holmes.engine.EngineDActiveApp server "$main_path/conf/engine-d.yml"