From 09d272d281823b38dfc91301751580f1804086d8 Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Tue, 15 Oct 2024 08:41:55 -0600 Subject: [PATCH] Try zstd:chunked in local cache registry There's a strong push to use zstd:chunked by default, but very little testing of it. This forces zstd:chunked on images in the local mirror cache. Also, add testimage:20241010 which was actually pushed to quay with zstd. Signed-off-by: Ed Santiago --- IMG_SFX | 2 +- cache_images/local-cache-registry | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/IMG_SFX b/IMG_SFX index e8963a1f..52dc9cbf 100644 --- a/IMG_SFX +++ b/IMG_SFX @@ -1 +1 @@ -20241016t144444z-f40f39d13 +20241022t120000z-f40f39d13 diff --git a/cache_images/local-cache-registry b/cache_images/local-cache-registry index 714e06ab..988e3d4c 100755 --- a/cache_images/local-cache-registry +++ b/cache_images/local-cache-registry @@ -81,6 +81,7 @@ declare -a IMAGELIST=( testimage:00000000 testimage:00000004 testimage:20221018 + testimage:20241010 testimage:20241011 testimage:multiimage testimage@sha256:1385ce282f3a959d0d6baf45636efe686c1e14c3e7240eb31907436f7bc531fa @@ -218,7 +219,10 @@ function cache_image() { for retry in 1 2 3 0;do skopeo --registries-conf /dev/null \ - copy --all --dest-tls-verify=false \ + copy --all \ + --dest-tls-verify=false \ + --dest-compress-format zstd:chunked \ + --preserve-digests \ docker://$registry/$img \ docker://127.0.0.1:${REGISTRY_PORT}/$img \ && return