-
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
BUG: tagging is broken for multistage builds #1456
Comments
@h-vetinari thanks for the issue. This is definitely not acting correctly as you surmised. I think the There appears to be something going on with the --layers option that's not letting that complete successfuly, if I add I'll have to dig more in the next day or too, and may need to check in with @nalind |
Thanks for the response!
Ideally (IMO) both dockerfiles should create exactly the same image, so that 21fe... is not untagged by the build, but stays the same. Builds not being idempotent is another issue I'm encountering (pending further tests). |
I think #1473 will fix this. |
@nalind @TomSweeneyRedHat |
@h-vetinari I'm not sure that's up to date. @lsm5 can you confirm or deny please? |
@h-vetinari what version of ubuntu are you on? I see that 16.04 hasn't been updated in a long time. I'll fix that now. 18.04 was last built on 5th april. Travis auto-builds break often for buildah quite likely due to .travis.yml changes. |
@lsm5 @nalind @TomSweeneyRedHat |
@nalind @TomSweeneyRedHat @rhatdan Just reran the test again, and it still fails, for both of:
Note that this time, Not sure if #1497 will have any bearing on this, but in any case, it would be very helpful to have this fixed. |
On Mon, Apr 08, 2019 at 01:32:52PM -0700, h-vetinari wrote:
@lsm5
I'm on Ubuntu 18.04. Is the ppa-update not scheduled regularly (e.g. daily)? Can you say if 29a6c81 was already part of the last build?
The latest build for 18.04 includes all commits up to
610eb7a
so I'll say yes.
RE: ppa update, it happens daily on my fork. But things tend to break often
cause rebases aren't always clean, and the debian build process makes it super
painful to upstream.
I have a TODO for snap builds which should be a lot easier to upstream. Soon as
I can find the time.
…
@nalind @TomSweeneyRedHat
Seems that the last build I tested above (and which fails the scenario laid out in the OP) includes at least #1473, but possibly not #1487.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#1456 (comment)
--
Lokesh
IRC, GitHub: lsm5
GPG: 0xC7C3A0DD
https://keybase.io/lsm5
|
I think what you're after would conventionally be accomplished by building only through that stage with the The name specified in a |
This is exactly what is not working, and what this issue is about, see self-quote from OP. Neither does it work to build the full image (no |
Aargh, I missed that. This appears to work correctly with buildah at least as of version ffd8d6a, though, so I expect we're looking at containers/podman#2931 to incorporate those changes into podman. |
@nalind Yeah, would definitely need to update the version vendored by podman, as I'm planning to use this through podman. |
@nalind Using the latest PPA, it works correctly to do either of:
|
Thanks! |
Just checked with the new PPA after containers/podman#2931, and now it works with |
[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.]Assume I have a toy dockerfile, say
podman_test.dockrf
:Then
sudo podman build -t podman_test -f podman_test.dockrf .
producesSo far so good. If I change the dockerfile slightly:
then I get an untagged image (even though it successfully uses the cache):
Same for
sudo podman build -t podman_test --target=base -f podman_test.dockrf .
This is quite basic functionality IMO - without tagging, many automation tasks are not possible.
The text was updated successfully, but these errors were encountered: