From 5a22969d7bebbfba479f02a0f4b55d273c5fab00 Mon Sep 17 00:00:00 2001 From: Peter Somogyvari Date: Thu, 25 Mar 2021 09:52:47 -0700 Subject: [PATCH] fix(tools): corda AIO healthcheck ignores jolokia errors The healthcheck script did not fail on curl returning a non-zero exit code because the bahs script that does the healthcheck was not configured to do so leaving the healthcheck essentially broken. Added the set -e line to the healthcheck to ensure that this does not happen (it makes the whole script fail as soon as any command within the script does so which is what we want from the healthcheck script) Tagged in the container registry as: `hyperledger/cactus-corda-4-6-all-in-one-obligation:2021-03-15-fix-healthcheck` Signed-off-by: Peter Somogyvari --- tools/docker/corda-all-in-one/healthcheck.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/docker/corda-all-in-one/healthcheck.sh b/tools/docker/corda-all-in-one/healthcheck.sh index e671485ea9..ea5b904b8e 100755 --- a/tools/docker/corda-all-in-one/healthcheck.sh +++ b/tools/docker/corda-all-in-one/healthcheck.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + if [ "$PARTY_A_WEB_SRV_ENABLED" = "true" ] then curl -vv -i -X OPTIONS http://127.0.0.1:10009/web/iou/