-
Notifications
You must be signed in to change notification settings - Fork 803
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
Support for RUN --mount=type=cache #3452
Comments
@nalind PTAL |
A friendly reminder that this issue had no activity for 30 days. |
@riconnon for a workaround you could mount volumes from host and use it as a cache storage I think this feature goes in parity with #3217 and can be easily implemented on top of it.So i think lets wait for #3217 first. |
@riconnon Above patch should close this issue. |
Description
I am investigating moving from
docker build
to buildah, but our existing build files make use ofRUN --mount=type=cache
to preserve things like package caches between builds and avoid continually redownloading the same artifacts.This feature was stabilised in
buildkit
bydockerfile
frontend version 1.2Is this something that buildah is interested in supporting? If not, is there an alternative strategy to solve the same problem?
Steps to reproduce the issue:
Dockerfile
orContainerfile
which does a lot of package (apk, pip, yarn, etc) installationsRUN
line, but does not modify which packages are downloadedDescribe the results you received:
The build downloads the required packages via the network each time
Describe the results you expected:
Ability to use
RUN --mount=type=cache
to permit the package files to be cached between buildsOutput of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:Output of
podman version
if reporting apodman build
issue:N/A
Output of
cat /etc/*release
:N/A
Output of
uname -a
:N/A
Output of
cat /etc/containers/storage.conf
:N/A
The text was updated successfully, but these errors were encountered: