fix(build): build the loki/alloy/comfyui images in docker format

The healthcheck added to the loki image was discarded by the build:
'HEALTHCHECK is not supported for OCI image format and will be ignored'.
podman builds OCI by default, and OCI has no HEALTHCHECK field, so the
container came back with no health at all — worse than the failing check it
replaced, because nothing reports the loss.

The build now passes --format docker, and the seam pins it so a future edit
cannot quietly reintroduce an image with no health field.
This commit is contained in:
Frank
2026-09-11 16:02:47 -07:00
parent b96359e628
commit 25c93984ad
3 changed files with 19 additions and 2 deletions
+6 -1
View File
@@ -456,7 +456,12 @@ build_compose_image() {
cfhash="$(sha256sum "$containerfile" | cut -d' ' -f1)"
oldhash="$(podman image inspect "$image" --format '{{index .Config.Labels "cfhash"}}' 2>/dev/null || echo none)"
if [[ "$oldhash" != "$cfhash" ]]; then
podman build --no-cache --label "cfhash=$cfhash" -t "$image" -f "$containerfile" .
# --format docker is required, not cosmetic: podman defaults to the OCI
# image format, which has no HEALTHCHECK field at all, so a build in
# the default format silently drops the loki image's healthcheck and
# the container then reports no health instead of failing loudly.
podman build --format docker --no-cache --label "cfhash=$cfhash" \
-t "$image" -f "$containerfile" .
fi
}