docker-postfix/helm/test.sh
Bojan Čekrlić ab725f5c40 Fix for #40: Add healthcheck to Dockerfile
`HEALTHCHECK` instruction has been added to `Dockerfile`. This should
allow `docker-compose` installations to monitor and restart the
container if neccessary.

Kubernetes deployment healthcheck has been tweaked a bit to better
validate that the server is actually running.
2020-11-03 11:58:10 +01:00

9 lines
332 B
Bash
Executable file

#!/usr/bin/env bash
set -e
mkdir -p fixtures
for i in `find -maxdepth 1 -type f -name test\*yml | sort`; do
echo "☆☆☆☆☆☆☆☆☆☆ $i ☆☆☆☆☆☆☆☆☆☆"
helm template -f $i --dry-run mail > fixtures/demo.yaml
docker run -it -v `pwd`/fixtures:/fixtures garethr/kubeval fixtures/demo.yaml
done