summaryrefslogtreecommitdiff
path: root/Justfile
diff options
context:
space:
mode:
Diffstat (limited to 'Justfile')
-rw-r--r--Justfile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Justfile b/Justfile
index 23739a5..6ef5e7a 100644
--- a/Justfile
+++ b/Justfile
@@ -183,11 +183,15 @@ rechunk $target_image=image_name $tag=default_tag:
# Chunkah creates an uncompressed intermediate OCI archive; podman
# compresses the layers when pushing the image to the registry.
- export CHUNKAH_CONFIG_STR="$(podman inspect "${target_image}:${tag}")"
+ config_dir="$(mktemp -d)"
+ trap 'rm -rf "${config_dir}"' EXIT
+ podman inspect "${target_image}:${tag}" > "${config_dir}/image.json"
podman run --rm --mount=type=image,src="${target_image}:${tag}",target=/chunkah \
- -e CHUNKAH_CONFIG_STR quay.io/coreos/chunkah:latest \
+ --volume "${config_dir}/image.json:/chunkah-config.json:ro" \
+ quay.io/coreos/chunkah:latest \
build \
--verbose \
+ --config /chunkah-config.json \
--max-layers 128 \
--prune /sysroot/ \
--label ostree.commit- --label ostree.final-diffid- \