summaryrefslogtreecommitdiffstats
path: root/rulemgt-standalone
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2018-07-24 20:20:41 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2018-07-24 20:20:41 +0800
commitf7b8d47da7c0d9eb8bb9fe5d213cf8277d74a0cf (patch)
tree1bcac7660fc515c26026ee6097d4f37dc3e904b1 /rulemgt-standalone
parentbcb49748e807943be84baece5d5109f75bacc45c (diff)
Registered the UI to MSB
Change-Id: Ia8834d5f30fac7f6e14735e9828c7541ae7af66c Issue-ID: HOLMES-146 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt-standalone')
-rw-r--r--rulemgt-standalone/src/main/assembly/bin/run.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/run.sh b/rulemgt-standalone/src/main/assembly/bin/run.sh
index fb7c164..e05c753 100644
--- a/rulemgt-standalone/src/main/assembly/bin/run.sh
+++ b/rulemgt-standalone/src/main/assembly/bin/run.sh
@@ -81,7 +81,9 @@ sed -i "s|keyStorePassword:.*|keyStorePassword: $KEY_PASSWORD|" "$main_path/conf
./bin/initDB.sh $JDBC_USERNAME $JDBC_PASSWORD $DB_NAME $DB_PORT "${URL_JDBC%:*}"
-#Register the frontend to MSB
+#Register the fronten to MSB
+body='{"serviceName": "holmes", "version": "v1", "url": "/iui/holmes","protocol": "UI", "enable_ssl":"true", "visualRange":"0|1", "nodes": [ {"ip": "host_ip","port": "9104"}]}'
+curl -X POST -H "Content-Type: application/json" -d ${body/host_ip/"${HOSTNAME%:*}"} http://${MSB_ADDR}:10081/api/microservices/v1/services
nginx -c /usr/local/openresty/nginx/conf/nginx.conf