From 03ceed359b7f079712e20f105dc8328d37c44b2f Mon Sep 17 00:00:00 2001 From: Benjamin Diaz Date: Wed, 21 Nov 2018 18:10:05 -0300 Subject: [PATCH] Adds healthcheck to MON Dockerfile The healthcheck checks connection to Kafka, Prometheus exporter and processes running. Signed-off-by: Benjamin Diaz Change-Id: Ibc94a8ad0687ffa3199ba1a845e3730814d9a52f --- docker/MON/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/MON/Dockerfile b/docker/MON/Dockerfile index c2760000..6fb35cc1 100644 --- a/docker/MON/Dockerfile +++ b/docker/MON/Dockerfile @@ -62,6 +62,9 @@ ENV OSMMON_VCA_HOST localhost ENV OSMMON_VCA_SECRET secret ENV OSMMON_VCA_USER admin -EXPOSE 8662 8000 +EXPOSE 8000 + +HEALTHCHECK --interval=5s --timeout=2s --retries=12 \ + CMD osm-mon-healthcheck || exit 1 CMD /bin/bash scripts/runInstall.sh -- 2.25.1