Skip to content

Commit

Permalink
fix(tools): corda AIO healthcheck ignores jolokia errors
Browse files Browse the repository at this point in the history
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 <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Mar 26, 2021
1 parent 9828be4 commit 529dcaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/docker/corda-all-in-one/healthcheck.sh
Original file line number Diff line number Diff line change
@@ -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/
Expand Down

0 comments on commit 529dcaf

Please sign in to comment.