Skip to content

Commit

Permalink
chore: Improve docker experience
Browse files Browse the repository at this point in the history
By waiting for the wiremock to be up and healthy, race conditions during
tests can be prevented.

Co-authored-by: Sven Uhlig <[email protected]>
Co-authored-by: Torsten Will <[email protected]>
  • Loading branch information
3 people committed Nov 21, 2024
1 parent 55ca3a3 commit d29ad7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ services:
condition: service_completed_successfully
init-ne-x1-stores:
condition: service_completed_successfully
network-element:
condition: service_healthy
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ services:
depends_on:
init-wiremock-certs:
condition: service_completed_successfully
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/__admin/health"]
timeout: 1s
start_period: 8s
interval: 1s

init-wiremock-certs:
image: registry.sipgate.net/docker/sipgate/runtime/zre-21:debian-bookworm
Expand Down

0 comments on commit d29ad7a

Please sign in to comment.