fixed issue #801 , support canal docker

This commit is contained in:
七锋
2018-08-03 17:48:32 +08:00
committed by Chuanyi Li L
parent 7662c9241e
commit ffeec8fc86
23 changed files with 580 additions and 24 deletions

13
docker/image/admin/health.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
CHECK_URL="http://127.0.0.1:8080/metrics"
CHECK_POINT="success"
CHECK_COUNT=`curl -s --connect-timeout 7 --max-time 7 $CHECK_URL | grep -c $CHECK_POINT`
if [ $CHECK_COUNT -eq 0 ]; then
echo "[FAILED]"
status=0
error=1
else
echo "[ OK ]"
status=1
error=0
fi