-
Notifications
You must be signed in to change notification settings - Fork 787
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
ENH: buildah bud should cache layers by default? #1455
Comments
I'll let @rhatdan or @nalind correct me, but the reasoning for You bring up a good point on the difference use of |
Thanks for the response!
Well, even if I'm developing a container, and changing something in (say) step 15, I don't want to have to wait needlessly for steps 1-14 to rerun. To the contrary, turning off the cache with |
@h-vetinari Sorry for the confusion. The thought was that buildah would be used more often in CI/CD systems while podman build is more often used to develop container images using Dockerfile. If you are building a container image in a CI/CD system having every RUN/COPY/ADD command create a layer makes no sense. Note you can easily change the default for either PODMAN or BUILDAH using environment variables.
Do you think the man pages is not descriptive enough? |
I believe this is documented well enough. |
[Now that I have access to the nightly ppa's (cf. containers/podman#2250), I'm starting to file some issues against
podman
- and since the issue template there says thatpodman build
issues should be filed for buildah, I'm starting here.]In the spirit of the podman credo
podman build
actually uses caching, so I was surprised thatbuildah bud
does not. Is there a reason it should not be enabled by default? Shouldpodman build [dockerfile]
==buildah bud [dockerfile]
, or are the differences documented somewhere?Also the
--layers
parameter is not obvious to find, for example, it's mentioned nowhere in the tutorials.The text was updated successfully, but these errors were encountered: