Skip to content

Commit b2a8508

Browse files
committed
Wait that GeoServer is started
1 parent a5156e5 commit b2a8508

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ acceptance-tests-up: build .env
5454

5555
.PHONY: acceptance-tests-run
5656
acceptance-tests-run: .env
57+
# Wait for GeoServer to be ready (up to 2 minutes)
58+
docker compose exec -T print sh -c 'for i in $(shell seq 1 24); do curl --fail http://geoserver:8080/geoserver/web/ && exit 0; sleep 5; done; exit 1'
59+
docker compose exec -T print curl --fail http://geoserver:8080/geoserver/www/map-data/test-data/simple-squares-geojson.json
60+
5761
docker compose exec -T tests gradle \
5862
--exclude-task=:core:spotbugsMain --exclude-task=:core:checkstyleMain \
5963
--exclude-task=:core:spotbugsTest --exclude-task=:core:checkstyleTest --exclude-task=:core:testCLI \

0 commit comments

Comments
 (0)