From: Benjamin Diaz Date: Wed, 21 Nov 2018 21:10:05 +0000 (-0300) Subject: Adds healthcheck to MON Dockerfile X-Git-Tag: v5.0.0~10^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=03ceed359b7f079712e20f105dc8328d37c44b2f;p=osm%2Fdevops.git Adds healthcheck to MON Dockerfile The healthcheck checks connection to Kafka, Prometheus exporter and processes running. Signed-off-by: Benjamin Diaz Change-Id: Ibc94a8ad0687ffa3199ba1a845e3730814d9a52f --- 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