From 84e5c25170970d2f616be5f6c15b110f741e99b0 Mon Sep 17 00:00:00 2001 From: Jakub Dudycz Date: Mon, 3 Sep 2018 14:15:55 +0200 Subject: Define simple health check Change-Id: Ideac561fb0d30e48ecf0362e73145a93b0c30367 Issue-ID: DCAEGEN2-659 Signed-off-by: Jakub Dudycz Signed-off-by: Piotr Jaszczyk --- .../dcaegen2-collectors-hv-ves/testsuites/docker-compose.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'test/csit/plans/dcaegen2-collectors-hv-ves/testsuites') diff --git a/test/csit/plans/dcaegen2-collectors-hv-ves/testsuites/docker-compose.yml b/test/csit/plans/dcaegen2-collectors-hv-ves/testsuites/docker-compose.yml index 28cded8cb..66cbde22f 100644 --- a/test/csit/plans/dcaegen2-collectors-hv-ves/testsuites/docker-compose.yml +++ b/test/csit/plans/dcaegen2-collectors-hv-ves/testsuites/docker-compose.yml @@ -42,11 +42,17 @@ services: command: ["-server", "-bootstrap"] ves-hv-collector: - image: $DOCKER_REGISTRY/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main + image: $DOCKER_REGISTRY/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:latest ports: + - "6060:6060" - "6061:6061/tcp" entrypoint: ["java", "-Dio.netty.leakDetection.level=paranoid", "-cp", "*:", "org.onap.dcae.collectors.veshv.main.MainKt"] command: ["--listen-port", "6061","--config-url", "http://consul:8500/v1/kv/veshv-config"] + healthcheck: + interval: 10s + timeout: 5s + retries: 2 + test: "curl --request GET --fail --silent --show-error localhost:6060/health/ready && nc -vz localhost 6061" depends_on: - kafka volumes: @@ -55,7 +61,7 @@ services: - ves-hv-default dcae-app-simulator: - image: $DOCKER_REGISTRY/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-dcae-app-simulator + image: $DOCKER_REGISTRY/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-dcae-app-simulator:latest ports: - "6063:6063/tcp" command: ["--listen-port", "6063", "--kafka-bootstrap-servers", "kafka:9092", "--kafka-topics", "ves_hvRanMeas"] @@ -63,7 +69,7 @@ services: interval: 10s timeout: 5s retries: 2 - test: ["CMD", "curl", "--request", "GET", "--fail", "--silent", "--show-error", "localhost:6063/healthcheck"] + test: "curl --request GET --fail --silent --show-error localhost:6063/healthcheck" depends_on: - kafka networks: -- cgit 1.2.3-korg