-
Notifications
You must be signed in to change notification settings - Fork 139
[WIP] Use heredoc syntax for RUN statements #808
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
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
b5749ff to
476d1cd
Compare
tuminoid
left a comment
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.
Unless heredoc inherits the first set -e, then it'll remove && success chain guarantee, which is changing behavior.
476d1cd to
e89e2ef
Compare
tuminoid
left a comment
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.
Not sure if we gain anything here, besides the ipxe build part... ?
@tuminoid yeah it's a small change, mostly to remove all the && |
I'm just not sure why is it worth replacing a line with && with 5 lines (the last change in diff for example). What is the actual benefit? It is cleaner for the ipxe for sure, as its basically a script (we could put that into a script, like configure-nonroot.sh is) and that'd solve that. |
|
I'm afraid podman version in the IrSO functional is too old for heredoc syntax :/ |
@tuminoid better readability, more clean, possibility to run commands as a script without the need to copy the script in the container and so saving a layer, quicker execution, to mention some |
e89e2ef to
ffcc316
Compare
|
ubuntu has podman version 4.9 which has some issues parsing the heredoc syntax without adding the shell explicitely, but docker on the other hand uses sh by default breaking the workaround |
ffcc316 to
c013d8f
Compare
|
/test metal3-centos-e2e-integration-test-main metal3-ubuntu-e2e-integration-test-main |
|
we should probably switch the IrSO functional to docker on ubuntu and the cs9/cs10 jobs to podman as they have newer versions |
c013d8f to
dce6715
Compare
No more && \ Signed-off-by: Riccardo Pittau <[email protected]>
dce6715 to
4f8de13
Compare
|
podman version on noble is just too old to support heredoc, we could use a static compiled version (I tested it and it works) to bump to 5.x to be able to support podman, but we probably need to discuss this first |
No more && \