mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-24 22:55:36 +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:
Regular → Executable
+10
-1
@@ -1,5 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
set -e
|
||||
|
||||
case "$SERVICE_TO_START" in
|
||||
server|dagent|gateway|ical|grapi|kapi|monitor|search|spooler)
|
||||
goss -g /kopano/goss/"$SERVICE_TO_START"/goss.yaml validate --format json_oneline
|
||||
;;
|
||||
*)
|
||||
echo "This service still needs a proper check"
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user