From: Guangrong Fu Date: Sat, 2 Sep 2017 10:50:23 +0000 (+0800) Subject: Expose the host IP to the service X-Git-Tag: v1.0.0~55 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=holmes%2Fengine-management.git;a=commitdiff_plain;h=c0d73d17062da98a028754555f2a6a18273f5c64 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 --- 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"