This is an automated email from the ASF dual-hosted git repository.
laurence pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git
The following commit(s) were added to refs/heads/3.0 by this push:
new 37c4cfa fix (#175)
37c4cfa is described below
commit 37c4cfaf879ed726c5070c92bb665418abbfc95c
Author: Laurence <[email protected]>
AuthorDate: Sat Jul 17 21:34:35 2021 +0800
fix (#175)
---
multi-zone/build/test.sh | 2 ++
multi-zone/docker/docker-health-check.sh | 16 ++++++++++++++++
2 files changed, 18 insertions(+)
diff --git a/multi-zone/build/test.sh b/multi-zone/build/test.sh
index 836fea6..34e2b1f 100755
--- a/multi-zone/build/test.sh
+++ b/multi-zone/build/test.sh
@@ -20,6 +20,8 @@ P_DIR="$1"
# start zookeeper
make PROJECT_DIR="$P_DIR" PROJECT_NAME="$(basename "$P_DIR")"
BASE_DIR="$P_DIR"/dist -f build/Makefile docker-up
+make PROJECT_DIR="$P_DIR" PROJECT_NAME="$(basename "$P_DIR")"
BASE_DIR="$P_DIR"/dist -f build/Makefile docker-health-check
+
# start server
make PROJECT_DIR="$P_DIR"/go-server-hz PROJECT_NAME="$(basename
"$P_DIR"/go-server-hz)" BASE_DIR="$P_DIR"/go-server-hz/dist -f build/Makefile
start
make PROJECT_DIR="$P_DIR"/go-server-sh PROJECT_NAME="$(basename
"$P_DIR"/go-server-sh)" BASE_DIR="$P_DIR"/go-server-sh/dist -f build/Makefile
start
diff --git a/multi-zone/docker/docker-health-check.sh
b/multi-zone/docker/docker-health-check.sh
new file mode 100644
index 0000000..7b73e39
--- /dev/null
+++ b/multi-zone/docker/docker-health-check.sh
@@ -0,0 +1,16 @@
+curl 127.0.0.1:2182
+res=$?
+passCode=52
+while [ "$res" != "$passCode" ];do
+ sleep 5
+ curl 127.0.0.1:2182
+ res=$?
+done
+
+curl 127.0.0.1:2183
+res=$?
+while [ "$res" != "$passCode" ];do
+ sleep 5
+ curl 127.0.0.1:2183
+ res=$?
+done