1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-07-16 22:46:39 +00:00

repair health check for kopano-webapp and kopano-meet (#344)

* json output in the healtcheck is hard to read

Signed-off-by: Felix Bartels <felix@host-consultants.de>

* fix meet health check after moving json to /tmp

Signed-off-by: Felix Bartels <felix@host-consultants.de>

* fix webapp health check

Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
Felix Bartels 2020-02-27 15:23:13 +01:00 committed by GitHub
parent 40981f460b
commit 7eeea1944c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 7 deletions

View File

@ -59,5 +59,5 @@ COPY goss.yaml /goss/
CMD [ "/kopano/start-service.sh" ]
HEALTHCHECK --interval=1m --timeout=10s \
CMD goss -g /goss/goss.yaml validate --format json_oneline
CMD goss -g /goss/goss.yaml validate

View File

@ -1,5 +1,5 @@
file:
/usr/share/kopano-kweb/www/config/kopano/meet.json:
/tmp/meet.json:
exists: true
mode: "0644"
owner: root

View File

@ -42,4 +42,4 @@ CMD ["start.sh"]
# TODO interval does not only define how often the healtcheck is run, but also how long to wait for the first check after startup
HEALTHCHECK --interval=60m --timeout=15s \
CMD goss -g /goss/goss.yaml validate --format json_oneline
CMD goss -g /goss/goss.yaml validate

View File

@ -82,4 +82,4 @@ ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD [ "/kopano/start.sh" ]
HEALTHCHECK --interval=1m --timeout=10s \
CMD goss -g /goss/goss.yaml validate --format json_oneline
CMD goss -g /goss/goss.yaml validate

View File

@ -1,12 +1,9 @@
file:
/run/sessions:
exists: true
mode: "0755"
size: 4096
owner: www-data
group: www-data
filetype: directory
contains: []
/usr/lib/php/20180731/mapi.so:
exists: true
mode: "0644"