projects
/
osm
/
devops.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c1fc56
)
Adds healthcheck to MON Dockerfile
42/6942/2
author
Benjamin Diaz
<bdiaz@whitestack.com>
Wed, 21 Nov 2018 21:10:05 +0000
(18:10 -0300)
committer
Benjamin 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
patch
|
blob
|
history
diff --git
a/docker/MON/Dockerfile
b/docker/MON/Dockerfile
index
c276000
..
6fb35cc
100644
(file)
--- 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