From bc831ff4a4e6c9c8070a9d68737a9baa0fb7f68c Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Mon, 27 Feb 2017 11:38:22 +0200 Subject: [PATCH] feat(aio): check resolution of external URLs in HEALTHCHECK --- .../dockerbuild/scripts-sh/health-check.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/aio/aio-builds-setup/dockerbuild/scripts-sh/health-check.sh b/aio/aio-builds-setup/dockerbuild/scripts-sh/health-check.sh index ec96ef58fc..159770ea37 100644 --- a/aio/aio-builds-setup/dockerbuild/scripts-sh/health-check.sh +++ b/aio/aio-builds-setup/dockerbuild/scripts-sh/health-check.sh @@ -39,5 +39,15 @@ for o in ${origins[@]}; do done +# Check resolution of external URLs +origins=( + https://google.com +) +for o in ${origins[@]}; do + curl --fail --silent $o > /dev/null + reportStatus "External URL '$o'" +done + + # Exit exit $exitCode