Healthcheck

This commit is contained in:
Kroese 2023-04-21 08:19:19 +02:00 committed by GitHub
parent b3d1539e98
commit 9f1164ab60

View File

@ -1,4 +1,13 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -eu set -eu
PORT=5000
IP="20.20.20.21"
if ! curl -m 3 -ILfSs "http://$IP:$PORT/"; then
echo "Failed to reach $IP"
exit 1
fi
echo "Healthcheck OK"
exit 0 exit 0