diff options
Diffstat (limited to 'Justfile')
| -rw-r--r-- | Justfile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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- \ |
