Skip to content

Commit

Permalink
GH-5064: corrected check for jetty startup
Browse files Browse the repository at this point in the history
Signed-off-by: Bart Hanssens <bart.hanssens@bosa.fgov.be>
  • Loading branch information
barthanssens committed Jul 22, 2024
1 parent b734f47 commit 2e52488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ docker compose up --force-recreate -d

# Wait for the server to be ready. Server is ready when the log contains something like "org.apache.catalina.startup.Catalina.start Server startup in 3400 ms".
printf '%s' "Waiting for container to be ready"
while ! docker compose logs rdf4j | grep -q "Server startup in|Started ServerConnector"; do
while ! docker compose logs rdf4j | grep -q -e "Server startup in" -e "Started ServerConnector"; do
printf '%s' "."
# Exit with error if we have looped 30 times (e.g. 30 seconds)
((c++)) && ((c == 30)) && echo "" && docker compose logs | tee && echo "" && docker ps -a | tee && printf '\n%s\n' "Timed out while waiting!" >&2 && exit 1
Expand Down

0 comments on commit 2e52488

Please sign in to comment.