Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intelligent cache of ADD --checksum download #5685

Open
hholst80 opened this issue Aug 14, 2024 · 7 comments
Open

Intelligent cache of ADD --checksum download #5685

hholst80 opened this issue Aug 14, 2024 · 7 comments
Assignees

Comments

@hholst80
Copy link

hholst80 commented Aug 14, 2024

I would like to see the following feature in Buildah, to achieve feature parity with Buildkit.

Suppose we have the following Dockerfile (or Containerfile):

FROM scratch
ADD --checksum=sha256:f6e4d41fd5fc778b06b7891457b3620da5ecea1006c6a4a41ae998109f85a800 https://sourceware.org/pub/binutils/releases/binutils-2.42.tar.xz /

This should not pull down any file from sourceware.org if the file is already in cache and has the specified SHA256 checksum. If the local file has the same checksum as the one in the URL there is no reason to download anything.

Note that this is cached, but only so after the source has been downloaded, thus fairly useless for my use case.

Copy link

A friendly reminder that this issue had no activity for 30 days.

Copy link

A friendly reminder that this issue had no activity for 30 days.

@codethief
Copy link

Not stale

@rhatdan
Copy link
Member

rhatdan commented Oct 22, 2024

@flouthoc PTAL

@flouthoc
Copy link
Collaborator

I'll take a look at this.

@flouthoc flouthoc self-assigned this Oct 22, 2024
Copy link

A friendly reminder that this issue had no activity for 30 days.

@codethief
Copy link

Not stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants