summaryrefslogtreecommitdiffstats
path: root/rulemgt-standalone
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-16 16:28:13 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-16 16:28:13 +0800
commitd436373af82f24d22ec1aecba24d3dd6adaec113 (patch)
treeb73e365e8b0c7719168d01dfb7eb45367b94edfb /rulemgt-standalone
parent10dfe5f992c439d8113c09eee15750b82253a415 (diff)
Integrate Holmes with DCAE
Get service information via DCAE CBS Change-Id: Idc90fd5bb9c1120529baec736a40b53960712b25 Issue-ID: HOLMES-45 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt-standalone')
-rw-r--r--rulemgt-standalone/src/main/assembly/bin/run.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/run.sh b/rulemgt-standalone/src/main/assembly/bin/run.sh
index 2142059..3779e31 100644
--- a/rulemgt-standalone/src/main/assembly/bin/run.sh
+++ b/rulemgt-standalone/src/main/assembly/bin/run.sh
@@ -37,6 +37,10 @@ sed -i "s|msbServerAddr:.*|msbServerAddr: http://$MSB_ADDR|" "$main_path/conf/ru
export SERVICE_IP=`hostname -i`
echo SERVICE_IP=${SERVICE_IP}
+if [ ${TESTING} == 1 ]
+ export HOSTNAME=${SERVICE_IP}:9101
+fi
+
./bin/initDB.sh holmes holmespwd 5432 "${URL_JDBC%:*}"