-
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
delete successfully pushed
message
#1744
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it's reporting docker://localhost:5000/alpine:latest@sha256:294c4cf3a9a174563142b85737afca6e14d2ef5eaaed9b7cac13cac787c06e25
, which is much better but we currently do not support the image:tag@digest
notation. So if a user would copy the output and tries to use it, they will face a parsing error. That might not be the best experience.
I see two options (maybe there are more that I don't yet see):
- We support parsing
image:tag@digest
. @mtrmac should weigh in here to be sure I am not missing something. - We remove the entire
Printf(...)
line (as Podman).
98c41db
to
9ca65be
Compare
I remove the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @QiWang19 👍
Change is fine, but the commit title and description need to be touched up to reflect the final changes. |
close containers#1742 Delete the line: `Successfully pushed...` Signed-off-by: Qi Wang <[email protected]>
9ca65be
to
ee6be6b
Compare
successfully pushed
message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for taking care of it!
LGTM assuming happy tests |
📌 Commit ee6be6b has been approved by |
☀️ Test successful - status-papr, status-travis |
Following this change, what's the recommended way to atomically determine the remote digest of a newly-pushed image? We had come to rely on this log message for content addressability, in order to work around the issue that RepoDigest and local image digests do not in general match (containers/skopeo#469). An alternate workaround would be to Is there another way that Buildah reports the RemoteDigest of the image it has just pushed? Or should we be going about this a completely different way? |
@vrothberg @mtrmac @nalind PTAL |
We removed the "Succesfully pushed ..." statement from the end of the `buildah push` command in containers#1744. However we've had a request for that information still so I'm re-adding it as a debug statement and we can discuss if there's a better way or not. Signed-off-by: TomSweeneyRedHat <[email protected]>
If you run 'buildah --debug push ...` you get some of that information in the output:
I'm not sure if that's sufficient for your needs nor do I know of another way to easily do it other than what you've mentioned. I've just "re-added" the output as a debug line in #1799. If the other folks don't have a better thought, we could go with that. The output using the
There's a lot more output this way though, would this work for you? |
Thanks, I didn't know about the If you agree that this is a reasonable thing for people to want to know after pushing an image, should we also think about a more permanent and documented solution? |
I'd like to hear from @nalind and @rhatdan on their thoughts as they had wanted to remove this line. Another approach that we might consider is adding a FWIW, the |
IIRC removing this text was not an explicit goal, it was just easier than to agree on a format that makes sense when we didn’t know of an user and didn’t have a strong need. (Let’s worry about that part in #1799.) Originally the functionality was added via containers/image#518 for OpenShift use (I guess via the API) and to the CLI output via #1097 , which does not explicitly say why it was added to the CLI). I mean, if the digest is supposed to be reliably consumable by scripts, we don’t want the scripts scraping the CLI output if we can help it; the CLI could have a
|
Ok, if users want this information, then --digestfile would work. @wwilson WDYT? |
I agree that structured output would be best. |
We removed the "Succesfully pushed ..." statement from the end of the `buildah push` command in containers#1744. However we've had a request for that information still so I'm re-adding it as a debug statement and we can discuss if there's a better way or not. Also add the --digestfile option. With it the user will be able to specify a file to write the digest of the pushed image to for reference. Signed-off-by: TomSweeneyRedHat <[email protected]>
We removed the "Succesfully pushed ..." statement from the end of the `buildah push` command in containers#1744. However we've had a request for that information still so I'm re-adding it as a debug statement and we can discuss if there's a better way or not. Also add the --digestfile option. With it the user will be able to specify a file to write the digest of the pushed image to for reference. Signed-off-by: TomSweeneyRedHat <[email protected]>
We removed the "Succesfully pushed ..." statement from the end of the `buildah push` command in containers#1744. However we've had a request for that information still so I'm re-adding it as a debug statement and we can discuss if there's a better way or not. Also add the --digestfile option. With it the user will be able to specify a file to write the digest of the pushed image to for reference. Signed-off-by: TomSweeneyRedHat <[email protected]>
We removed the "Succesfully pushed ..." statement from the end of the `buildah push` command in #1744. However we've had a request for that information still so I'm re-adding it as a debug statement and we can discuss if there's a better way or not. Also add the --digestfile option. With it the user will be able to specify a file to write the digest of the pushed image to for reference. Signed-off-by: TomSweeneyRedHat <[email protected]> Closes: #1799 Approved by: rhatdan
close #1742
Delete the line:
Successfully pushed...
Signed-off-by: Qi Wang [email protected]