buildah icon indicating copy to clipboard operation
buildah copied to clipboard

Intelligent cache of ADD --checksum download

Open hholst80 opened this issue 1 year ago • 10 comments

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.

hholst80 avatar Aug 14 '24 18:08 hholst80

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

github-actions[bot] avatar Sep 14 '24 00:09 github-actions[bot]

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

github-actions[bot] avatar Oct 17 '24 00:10 github-actions[bot]

Not stale

codethief avatar Oct 17 '24 09:10 codethief

@flouthoc PTAL

rhatdan avatar Oct 22 '24 10:10 rhatdan

I'll take a look at this.

flouthoc avatar Oct 22 '24 20:10 flouthoc

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

github-actions[bot] avatar Nov 22 '24 00:11 github-actions[bot]

Not stale.

codethief avatar Nov 22 '24 09:11 codethief

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

github-actions[bot] avatar Feb 12 '25 00:02 github-actions[bot]

Not stale

codethief avatar Feb 16 '25 11:02 codethief

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

github-actions[bot] avatar Mar 20 '25 00:03 github-actions[bot]