-
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
APIv2: No events on image build #7022
Comments
Thanks for opening an issue, @marusak. I can reproduce: both |
I found some time to have a closer look. It seems there is no |
I don't see how we would, given that the events code lives in Libpod and
image build is entirely in Buildah land
…On Mon, Jul 20, 2020, 06:29 Valentin Rothberg ***@***.***> wrote:
I found some time to have a closer look. It seems there is no build event
at all. @mheon <https://github.com/mheon> did we have some in previous
versions?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7022 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3AOCDO5ITCTHH2BVPR2RDR4QMATANCNFSM4PB7LGXA>
.
|
I think it's pretty similar to pulling, which happens in c/image. We could track down all buildah API calls in the code and record events there. Wouldn't that work? |
The problem specifically with build is that we immediately hand off from our CLI to the Buildah CLI - the other calls are usually a lot more integrated with the rest of our code ( We could potentially generate an event before we ever call Buildah, but I don't think we know some important things at that point (ID of the final image being the big one) |
Let's integrate something intoBuildah, that it can call functions on events. Would seem to be the best way. |
We should move the events code into c/common to allow Buildah to also call into it. |
We will have issues if they want to do container events, though, because we can't see those in |
Very good point. I think |
I suggest that we can tackle that after we split libpod from Podman. |
upon image build completion, a new image type event is written for "build". more intricate details, like pulling an image, that might be done by build must be implemented in different vendored packages only after libpod is split from podman. Fixes: containers#7022 Signed-off-by: Brent Baude <[email protected]>
upon image build completion, a new image type event is written for "build". more intricate details, like pulling an image, that might be done by build must be implemented in different vendored packages only after libpod is split from podman. Fixes: containers#7022 Signed-off-by: Brent Baude <[email protected]> <MH: Fixed imports during cherry-pick> Signed-off-by: Matt Heon <[email protected]>
upon image build completion, a new image type event is written for "build". more intricate details, like pulling an image, that might be done by build must be implemented in different vendored packages only after libpod is split from podman. Fixes: containers#7022 Signed-off-by: Brent Baude <[email protected]> <MH: Fixed imports during cherry-pick> Signed-off-by: Matt Heon <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman build
does not produce any event in the REST API.Steps to reproduce the issue:
sudo curl --unix-socket /run/podman/podman.sock http://d/v1.24/events
- start listening on eventssudo podman build .
(some simple Dockerfile)sudo podman images -a
shows a new image, but there is no events in the step 1. (sudo podman pull
produces event)Describe the results you received:
Describe the results you expected:
Some events that the image list has changed.
Output of
podman version
:The text was updated successfully, but these errors were encountered: