From: Guangrong Fu Date: Sat, 16 Sep 2017 08:28:51 +0000 (+0800) Subject: Integrate Holmes with DCAE X-Git-Tag: v1.0.0~37 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=holmes%2Fengine-management.git;a=commitdiff_plain;h=d7692a268bb54f45f21cd8227a07df67d9277bde Integrate Holmes with DCAE Get service information via DCAE CBS Change-Id: Iba5fc4dd52553e7da909adf50ed9d40e04adc5bc Issue-ID: HOLMES-45 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 59869ee..48795d1 100644 --- a/engine-d-standalone/src/main/assembly/bin/run.sh +++ b/engine-d-standalone/src/main/assembly/bin/run.sh @@ -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"