Expose the host IP to the service 87/10087/1
authorGuangrong Fu <fu.guangrong@zte.com.cn>
Sat, 2 Sep 2017 10:50:23 +0000 (18:50 +0800)
committerGuangrong Fu <fu.guangrong@zte.com.cn>
Sat, 2 Sep 2017 10:50:23 +0000 (18:50 +0800)
Expose the host IP to the service

Change-Id: I298b6a333a654b73a8d35cf6e9a008a098a1fad7
Issue-ID: HOLMES-39
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
engine-d-standalone/src/main/assembly/bin/run.sh

index 7a2a120..9948a04 100644 (file)
@@ -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"