initial commit with apps from course repo

This commit is contained in:
Richard Allred
2019-05-23 13:13:16 -04:00
commit 497620c4d1
244 changed files with 6997 additions and 0 deletions

13
nexus3/probes/liveness.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
curl -siu admin:admin123 http://localhost:8081/service/metrics/healthcheck | grep healthy | grep true
RESPONSE=$?
if [ "$RESPONSE" = "0" ] ; then
echo "******** liveness is Alive ********"
exit 0;
else
echo "******** liveness is Dead ********"
exit 1;
fi