initial commit with apps from course repo
This commit is contained in:
13
nexus-image/probes/readiness.sh
Normal file
13
nexus-image/probes/readiness.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
curl -si localhost:8081/nexus/service/local/repositories | grep Central
|
||||
RESPONSE=$?
|
||||
|
||||
if [ "$RESPONSE" = "0" ] ; then
|
||||
echo "******** readiness is Alive ********"
|
||||
exit 0;
|
||||
else
|
||||
echo "******** readiness is Dead ********"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user