We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7abc2fa commit d43b227Copy full SHA for d43b227
.github/workflows/docker_testing.yml
@@ -37,7 +37,20 @@ jobs:
37
run: |
38
docker run -d -p 8080:8080 --name wap-server \
39
wap-server:${{ matrix.os }}-${{ matrix.java }}
40
- sleep 100 # Give the server time to start
+ echo "Wait for wap server to be healthy before proceeding to tests"
41
+ while true; do
42
+ if ! docker ps | grep -q wap-server; then
43
+ echo "Docker container stopped unexpectedly. Aborting."
44
+ exit 1
45
+ fi
46
+ if curl -f http://localhost:8080; then
47
+ echo "Service is running."
48
+ break
49
50
+ echo "Waiting for the service to be ready..."
51
+ docker logs --tail 20 wap-server
52
+ sleep 5
53
+ done
54
55
- name: hurl install
56
uses: gacts/[email protected]
0 commit comments