Skip to content

Commit

Permalink
Check service health in test-docker-compose.yml with local images
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesChenX committed Dec 14, 2023
1 parent 7a96e3a commit 435261d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/test-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ jobs:

- name: Check Service Health
run: |
sed -i 's|pull_policy: always|pull_policy: never|g' docker-compose.standalone.yml
echo "Docker compose file to run with:"
cat docker-compose.standalone.yml
docker build -t "ghcr.io/turms-im/turms-admin:latest" -f turms-admin/Dockerfile .
docker build -t "ghcr.io/turms-im/turms-gateway:latest" -f turms-gateway/Dockerfile .
docker build -t "ghcr.io/turms-im/turms-service:latest" -f turms-service/Dockerfile .
ENV=prod docker compose -f docker-compose.standalone.yml up -d
sleep 10
RETRY=0
SERVICES=$(docker compose -f docker-compose.standalone.yml ps -q)
Expand Down
2 changes: 1 addition & 1 deletion turms-service/dist/bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,4 @@ else
exit 0
fi

exit $?
exit $?

0 comments on commit 435261d

Please sign in to comment.