From 7ec56d33cb89825ddb241ddc1cf0c1851b1e45ce Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sun, 7 Jul 2024 22:30:05 +0200 Subject: [PATCH] Fix health check so that Docker also likes it... --- tests/images/healthcheck/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/images/healthcheck/build.sh b/tests/images/healthcheck/build.sh index 0d90f89d6..80e9a63a0 100755 --- a/tests/images/healthcheck/build.sh +++ b/tests/images/healthcheck/build.sh @@ -27,7 +27,7 @@ for ARCH in amd64 arm64; do buildah copy "${WORKING_CONTAINER}" "${PROGRAM}-${ARCH}" "/${PROGRAM}" done buildah config --entrypoint '["/main"]' "${WORKING_CONTAINER}" - buildah config --healthcheck /is-healthy "${WORKING_CONTAINER}" + buildah config --healthcheck 'CMD /is-healthy' "${WORKING_CONTAINER}" buildah config --healthcheck-interval 1s "${WORKING_CONTAINER}" buildah config --healthcheck-retries 1 "${WORKING_CONTAINER}" buildah config --healthcheck-start-period 10s "${WORKING_CONTAINER}"