mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-30 18:07:46 +00:00 
			
		
		
		
	* basic healthcheck based on goss * add goss to travis * healtcheck command runs now for all services * add to makefile
		
			
				
	
	
		
			15 lines
		
	
	
		
			266 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			266 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| 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
 |