Adds healthcheck to MON Dockerfile 42/6942/2
authorBenjamin Diaz <bdiaz@whitestack.com>
Wed, 21 Nov 2018 21:10:05 +0000 (18:10 -0300)
committerBenjamin Diaz <bdiaz@whitestack.com>
Tue, 27 Nov 2018 15:25:49 +0000 (12:25 -0300)
The healthcheck checks connection to Kafka, Prometheus exporter and processes
running.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: Ibc94a8ad0687ffa3199ba1a845e3730814d9a52f

docker/MON/Dockerfile

index c276000..6fb35cc 100644 (file)
@@ -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