Skip to content

Commit 79ad1b9

Browse files
committed
Wait that GeoServer is started
1 parent fb52e40 commit 79ad1b9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-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 started
58+
# Wait for GeoServer to be ready (up to 2 minutes)
59+
docker compose exec -T print sh -c 'for i in $(seq 1 24); do curl --fail http://geoserver:8080/geoserver/web/ && exit 0; sleep 5; done; exit 1'
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 \

docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
services:
22
geoserver:
3+
# Credentials: admin/geoserver
34
image: camptocamp/geoserver:17
45
volumes:
56
- ./examples/geoserver-data/:/mnt/geoserver_datadir

0 commit comments

Comments
 (0)