summaryrefslogtreecommitdiffstats
path: root/engine-d-standalone/src/main/assembly
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-16 16:28:51 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-16 16:28:51 +0800
commitd7692a268bb54f45f21cd8227a07df67d9277bde (patch)
treeeda9d8e967499a393983a626b9e2aaae31ffe04a /engine-d-standalone/src/main/assembly
parentd5395c84a9ca9baccdf52b551b3d75fbf37eb8bd (diff)
Integrate Holmes with DCAE
Get service information via DCAE CBS Change-Id: Iba5fc4dd52553e7da909adf50ed9d40e04adc5bc Issue-ID: HOLMES-45 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'engine-d-standalone/src/main/assembly')
-rw-r--r--engine-d-standalone/src/main/assembly/bin/run.sh4
1 files changed, 4 insertions, 0 deletions
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"