From c0d73d17062da98a028754555f2a6a18273f5c64 Mon Sep 17 00:00:00 2001 From: Guangrong Fu Date: Sat, 2 Sep 2017 18:50:23 +0800 Subject: 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 --- engine-d-standalone/src/main/assembly/bin/run.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engine-d-standalone') 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" -- cgit 1.2.3-korg