Integrate Holmes with DCAE 69/12869/1
authorGuangrong Fu <fu.guangrong@zte.com.cn>
Sat, 16 Sep 2017 08:28:51 +0000 (16:28 +0800)
committerGuangrong Fu <fu.guangrong@zte.com.cn>
Sat, 16 Sep 2017 08:28:51 +0000 (16:28 +0800)
Get service information via DCAE CBS

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

index 59869ee..48795d1 100644 (file)
@@ -41,6 +41,10 @@ sed -i "s|url:.*|url: jdbc:postgresql://$URL_JDBC/holmes|" "$main_path/conf/engi
 export SERVICE_IP=`hostname -i`
 echo SERVICE_IP=${SERVICE_IP}
 
+if [ ${TESTING} == 1 ]
+    export HOSTNAME=${SERVICE_IP}:9102
+fi
+
 #ActiveMQ IP Configurations
 sed -i "s|brokerIp:.*|brokerIp: $SERVICE_IP|" "$main_path/conf/engine-d.yml"