-
Notifications
You must be signed in to change notification settings - Fork 802
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, heredoc: show heredoc
summary in build output
#5314
build, heredoc: show heredoc
summary in build output
#5314
Conversation
@containers/buildah-maintainers PTAL |
Ouch this broke older test which was not ready for heredoc's output on build log. Let me retrofit that test. |
Buildah must show summary of heredoc content in build output so its easy for developers to understand which heredoc got executed, this is similar to what buildkit does for heredoc content. See: https://github.com/moby/buildkit/blob/master/frontend/dockerfile/dockerfile2llb/convert.go#L1853 Sample output of buildah ```console STEP 1/5: FROM docker.io/library/python:latest STEP 2/5: RUN <<EOF (echo "Hello" >> /hello...) STEP 3/5: RUN python3 <<EOF (with open("/hello", "w") as f:...) STEP 4/5: RUN ls -a ``` Signed-off-by: flouthoc <flouthoc.git@gmail.com>
Signed-off-by: flouthoc <flouthoc.git@gmail.com>
1dcfcbf
to
533aac2
Compare
Should fine now I think. Let's see. |
LGTM |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc, giuseppe The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Buildah must show summary of heredoc content in build output so its easy for developers to understand which heredoc got executed, this is similar to what buildkit does for heredoc content.
See: https://github.com/moby/buildkit/blob/master/frontend/dockerfile/dockerfile2llb/convert.go#L1853
Output is similar to how
buildkit
producesheredoc
summary for build output.Sample output of buildah
What type of PR is this?
What this PR does / why we need it:
How to verify it
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?