Skip to content

Commit

Permalink
Try zstd:chunked in local cache registry
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
edsantiago authored and mtrmac committed Nov 22, 2024
1 parent fe4a6f3 commit 378153d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion IMG_SFX
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20241118t130000z-f41f40d13
20241122t203715z-f41f40d13
6 changes: 5 additions & 1 deletion cache_images/local-cache-registry
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ declare -a IMAGELIST=(
testimage:00000000
testimage:00000004
testimage:20221018
testimage:20241010
testimage:20241011
testimage:multiimage
testimage@sha256:1385ce282f3a959d0d6baf45636efe686c1e14c3e7240eb31907436f7bc531fa
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 378153d

Please sign in to comment.