Closed gmpinder closed 7 months ago
Can some code get reused from building cached image, instead of having to update CLI version twice & having 2 same codes for determining recipe?
Can some code get reused from building cached image, instead of having to update CLI version twice & having 2 same codes for determining recipe?
Good idea. I'll work on that
Trying to support an older version of
buildah
andpodman
proved too difficult. Instead we'll just run the build inside a container. From my own testing with the squash builds, when you runbuildah
/podman
inside a container, the builds can be incredibly slow with all the multi-stages and mounts on theRUN
instructions. However, activating squash (--layers=false
) the build runs just as fast as normal. Activating the squash feature will by default not make use of any cache abilities.