From 34d39a79fb9476740af693b33dda3f2b55b30c37 Mon Sep 17 00:00:00 2001 From: Artsiom Koltun Date: Tue, 31 Oct 2023 09:46:37 +0100 Subject: [PATCH] test: add jaeger health check Signed-off-by: Artsiom Koltun --- docker-compose.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 65057866..465fe8ae 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,6 +19,8 @@ services: depends_on: redis: condition: service_healthy + jaeger: + condition: service_healthy command: /opi-nvidia-bridge -grpc_port=50051 -http_port=8082 -spdk_addr /var/tmp/spdk.sock -redis_addr=redis:6379 healthcheck: test: grpcurl -plaintext localhost:50051 list || exit 1 @@ -40,6 +42,16 @@ services: - COLLECTOR_OTLP_ENABLED=true networks: - opi + healthcheck: + test: + [ + "CMD-SHELL", + "nc -zv localhost 4317 && nc -zv localhost 4318 || exit 1" + ] + interval: 6s + retries: 5 + start_period: 20s + timeout: 10s opi-gw-test: image: curlimages/curl:8.4.0