mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-11 16:32:59 +00:00
Use goss for healthchecks (#223)
* basic healthcheck based on goss * add goss to travis * healtcheck command runs now for all services * add to makefile
This commit is contained in:
@@ -65,6 +65,7 @@ RUN \
|
||||
&& rm -rf /var/cache/apt /var/lib/apt/lists
|
||||
|
||||
COPY start.sh /kopano/start.sh
|
||||
COPY goss* /goss/
|
||||
|
||||
ENV LANG en_US.UTF-8
|
||||
|
||||
@@ -72,3 +73,6 @@ WORKDIR /kopano/path
|
||||
|
||||
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||
CMD [ "/kopano/start.sh" ]
|
||||
|
||||
HEALTHCHECK --interval=1m --timeout=10s \
|
||||
CMD goss -g /goss/goss.yaml validate --format json_oneline
|
||||
|
||||
+4
-3
@@ -1,8 +1,9 @@
|
||||
port:
|
||||
tcp6:9080:
|
||||
listening: true
|
||||
process:
|
||||
kwebd:
|
||||
running: true
|
||||
php-fpm7.0:
|
||||
running: true
|
||||
http:
|
||||
http://localhost:9080/webapp:
|
||||
status: 200
|
||||
timeout: 5000
|
||||
|
||||
Reference in New Issue
Block a user