From fdab77c243f8b9ea064e25ccea9157039ed6f27d Mon Sep 17 00:00:00 2001 From: Artsiom Koltun Date: Tue, 31 Oct 2023 09:53:15 +0100 Subject: [PATCH] test: add jaeger health check Signed-off-by: Artsiom Koltun --- docker-compose.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 425f190a..d2c4681a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -207,9 +207,12 @@ services: environment: - OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 depends_on: - - leaf1 - - redis - - jaeger + leaf1: + condition: service_started + redis: + condition: service_healthy + jaeger: + condition: service_healthy network_mode: service:leaf1 command: /opi-evpn-bridge -grpc_port=50151 -http_port=8082 healthcheck: @@ -220,6 +223,16 @@ services: environment: - COLLECTOR_OTLP_ENABLED=true network_mode: service:leaf1 + healthcheck: + test: + [ + "CMD-SHELL", + "nc -zv localhost 4317 && nc -zv localhost 4318 || exit 1" + ] + interval: 6s + retries: 5 + start_period: 20s + timeout: 10s redis: image: redis:7.2.2-alpine3.18