-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
build with --squash-all + --timestamp clobbers timestamps in preexisting layers #14536
Comments
Here is my use case:
|
Hi @edsantiago , From last discussion I think fixing this and making @nalind @edsantiago If you are okay with it could we add a note for this behavior of |
I thought about it some more, and I think that using the not-often-used storage |
Speaking as someone with strong opinions :-), my intuition is that using (Disclaimer: conviction is poorly correlated with actual truth. My "strong opinions" really should yield to careful consideration from those better informed). |
Changes: - use --timestamp option to produce 'created' stamps that can be reliably tested in the image-history test - podman now supports manifest & multiarch run, so we no longer need buildah - bump up base alpine & busybox images This turned out to be WAY more complicated than it should've been, because: - alpine 3.14 fixed 'date -Iseconds' to include a colon in the TZ offset ("-07:00", was "-0700"). This is now consistent with GNU date's --iso-8601 format, yay, so we can eliminate a minor workaround. - with --timestamp, all ADDed files are set to that timestamp, including the custom-reference-timestamp file that many tests rely on. So we need to split the build into two steps. But: - ...with a two-step build I need to use --squash-all, not --squash, but: - ... (deep sigh) --squash-all doesn't work with --timestamp (containers#14536) so we need to alter existing tests to deal with new image layers. - And, long and sordid story relating to --rootfs. TL;DR that option only worked by a miracle relating to something special in one specific test image; it doesn't work with any other images. Fix seems to be complicated, so we're bypassing with a FIXME (containers#14505). And, unrelated: - remove obsolete skip and workaround in run-basic test (dating back to varlink days) - add a pause-image cleanup to avoid icky red warnings in logs Fixes: containers#14456 Signed-off-by: Ed Santiago <[email protected]>
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
This is unlikely ever to get fixed. I have a suboptimal workaround and can live with the bug. |
[filing under podman, not buildah, because
--squash-all
is a podman-only option]Documentation for
--timestamp
includes:...but to me that applies to files added/created in the build, not files in the existing image. The current behavior violates POLA.
The text was updated successfully, but these errors were encountered: