dockerfile: download frozen images with skopeo#50659
Closed
crazy-max wants to merge 2 commits intomoby:masterfrom
Closed
dockerfile: download frozen images with skopeo#50659crazy-max wants to merge 2 commits intomoby:masterfrom
crazy-max wants to merge 2 commits intomoby:masterfrom
Conversation
vvoland
reviewed
Aug 7, 2025
Dockerfile
Outdated
Comment on lines
+121
to
+130
| RUN --mount=from=skopeo,source=/out/skopeo,target=/usr/bin/skopeo <<EOT | ||
| set -ex | ||
| mkdir /out | ||
| skopeo --insecure-policy copy docker://busybox@sha256:95cf004f559831017cdf4628aaf1bb30133677be8702a8c5f2994629f637a209 --additional-tag busybox:latest docker-archive:///out/busybox-latest.tar | ||
| skopeo --insecure-policy copy docker://busybox@sha256:1f81263701cddf6402afe9f33fca0266d9fff379e59b1748f33d3072da71ee85 --additional-tag busybox:glibc docker-archive:///out/busybox-glibc.tar | ||
| skopeo --insecure-policy copy docker://debian@sha256:2bc5c236e9b262645a323e9088dfa3bb1ecb16cc75811daf40a23a824d665be9 --additional-tag debian:bookworm-slim docker-archive:///out/debian-bookworm-slim.tar | ||
| skopeo --insecure-policy copy docker://hello-world@sha256:d58e752213a51785838f9eed2b7a498ffa1cb3aa7f946dda11af39286c3db9a9 --additional-tag hello-world:latest docker-archive:///out/hello-world-latest.tar | ||
| skopeo --insecure-policy --override-os linux --override-arch arm --override-variant v7 copy docker://arm32v7/hello-world@sha256:50b8560ad574c779908da71f7ce370c0a2471c098d44d1c8f6b513c5a55eeeb1 --additional-tag arm32v7/hello-world:latest docker-archive:///out/arm32v7-hello-world-latest.tar | ||
| skopeo --insecure-policy --override-os linux --override-arch amd64 copy docker://hello-world@sha256:90659bf80b44ce6be8234e6ff90a1ac34acbeb826903b02cfa0da11c82cbc042 --additional-tag hello-world:amd64 docker-archive:///out/hello-world-amd64.tar | ||
| skopeo --insecure-policy --override-os linux --override-arch arm64 copy docker://hello-world@sha256:963612c5503f3f1674f315c67089dee577d8cc6afc18565e0b4183ae355fb343 --additional-tag hello-world:arm64 docker-archive:///out/hello-world-arm64.tar |
Contributor
There was a problem hiding this comment.
I think that will no longer be read correctly by
moby/testutil/fixtures/load/frozen.go
Lines 182 to 223 in e628fa0
(yes it's really cursed code 🙈)
Member
Author
There was a problem hiding this comment.
Oh didn't catch this one indeed
Member
Author
There was a problem hiding this comment.
Done it the lazy way by removing lazy pull. I think this is fine as we always assume we run integration tests in our sandbox.
Member
There was a problem hiding this comment.
Can we continue using /build/ (to stay consistent)?
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
b79e98c to
e168f2f
Compare
Member
|
Discussing possibly use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
relates to #50655
follow-up #44005