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 ae19dd9Copy full SHA for ae19dd9
.github/workflows/docker_testing.yml
@@ -37,7 +37,21 @@ 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
+ docker ps -a
43
+ if ! docker ps | grep -q wap-server; then
44
+ echo "Docker container stopped unexpectedly. Aborting."
45
+ exit 1
46
+ fi
47
+ if curl -f http://localhost:8080; then
48
+ echo "Service is running."
49
+ break
50
51
+ echo "Waiting for the service to be ready..."
52
+ docker logs --tail 20 wap-server
53
+ sleep 5
54
+ done
55
56
- name: hurl install
57
uses: gacts/[email protected]
0 commit comments