Skip to content

Commit

Permalink
fix docker compose healthcheck
Browse files Browse the repository at this point in the history
Signed-off-by: Chenlong Ma <chenlongm@vmware.com>
  • Loading branch information
owlet42 committed Nov 24, 2023
1 parent 9800086 commit c82d43f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build/ci/docker-deploy/docker_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ for ((i = 1; i <= MAX_TRY; i++)); do
result=$(docker ps | wc -l)
if [ "${result}" -eq ${CONTAINER_NUM} ]; then
echo "# containers are ok"
FATE_FLOW_STATUS=$(curl -s -X POST localhost:9380/v1/version/get)
success='"retmsg":"success"'
FATE_FLOW_STATUS=$(curl -s -X GET localhost:9380/v2/server/fateflow)
success='"message":"success"'
result=$(echo $FATE_FLOW_STATUS | grep "${success}")
if [[ "$result" != "" ]]
then
Expand Down
2 changes: 1 addition & 1 deletion docker-deploy/training_template/docker-compose-eggroll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ services:
fate-network:
ipv4_address: 192.167.0.100
healthcheck:
test: ["CMD", "curl", "-f", "-X POST", "http://192.167.0.100:9380/v1/version/get"]
test: ["CMD", "curl", "-f", "-X GET", "http://192.167.0.100:9380/v2/server/fateflow"]
interval: 1m30s
timeout: 10s
retries: 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ services:
fate-network:
ipv4_address: 192.167.0.100
healthcheck:
test: ["CMD", "curl", "-f", "-X POST", "http://192.167.0.100:9380/v1/version/get"]
test: ["CMD", "curl", "-f", "-X GET", "http://192.167.0.100:9380/v2/server/fateflow"]
interval: 1m30s
timeout: 10s
retries: 3
Expand Down
2 changes: 1 addition & 1 deletion docker-deploy/training_template/docker-compose-spark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ services:
fate-network:
ipv4_address: 192.167.0.100
healthcheck:
test: ["CMD", "curl", "-f", "-X POST", "http://192.167.0.100:9380/v1/version/get"]
test: ["CMD", "curl", "-f", "-X GET", "http://192.167.0.100:9380/v2/server/fateflow"]
interval: 1m30s
timeout: 10s
retries: 3
Expand Down

0 comments on commit c82d43f

Please sign in to comment.