From 6d548c4e1cc17499e261baf829e494e3c74376fe Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 30 Sep 2024 16:49:24 +0200 Subject: [PATCH] Add a healthcheck for Blazegraph in docker compose (#5161) Co-authored-by: Simon Dumas --- tests/docker/docker-compose.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/docker/docker-compose.yml b/tests/docker/docker-compose.yml index 9436c548de..9afe8f5189 100644 --- a/tests/docker/docker-compose.yml +++ b/tests/docker/docker-compose.yml @@ -12,7 +12,7 @@ services: elasticsearch: condition: service_healthy blazegraph: - condition: service_started + condition: service_healthy postgres: condition: service_started storage-service: @@ -133,6 +133,11 @@ services: JAVA_OPTS: "-Dlog4j.configuration=/config/blazegraph/log4j.properties -DjettyXml=/config/blazegraph/jetty.xml -Djava.awt.headless=true -XX:MaxDirectMemorySize=300m -Xms4g -Xmx4g -XX:+UseG1GC" ports: - 9999:9999 + healthcheck: + test: [ "CMD", "curl", "-f", "http://localhost:9999/blazegraph/" ] + interval: 1s + timeout: 2s + retries: 60 volumes: - ./config:/config