fix: convert from long RUN statements to a setup.sh script#173
fix: convert from long RUN statements to a setup.sh script#173JohnVillalovos merged 2 commits intomasterfrom
RUN statements to a setup.sh script#173Conversation
1f0e1e5 to
fb24c4c
Compare
There was a problem hiding this comment.
Pull request overview
Removes the Dockerfile-level SHELL override (to avoid relying on a non-OCI instruction) and instead makes the heredoc RUN blocks explicitly run under bash, preserving pipefail behavior within those scripts.
Changes:
- Removed
SHELL ["/bin/bash", "-o", "pipefail", "-c"]from the Dockerfile. - Updated heredoc
RUNblocks to invokebashdirectly and set-o pipefailviaset -xeuo pipefail.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
b8e890a to
d350b05
Compare
SHELL and specify bash in RUNRUN statements to a setup.sh script
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 5 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
d350b05 to
ccbaac8
Compare
|
Since most (but not all) was using 2 space indents I did that. And added a header to the files so that editors would know. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 5 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
ikke-t
left a comment
There was a problem hiding this comment.
I assume apart from linter and while loop and dockerfile all are just white space changes?
I didn't test these, but read thrm through. Nothing apart removing setup.sh from container catches my eye.
673cd5f to
eb82df2
Compare
|
I have updated the PR and made
Yes. That is correct.
Done |
eb82df2 to
33977eb
Compare
33977eb to
1324de3
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 5 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
|
Aside from your comments, above, I tested a build with podman and ran a |
1324de3 to
23e4886
Compare
Convert the multiple `RUN` statements into a `setup.sh` bash script. Add a CI job to check the shell scripts.
Also run `shfmt -i 4 -ci -w bin/*sh`
23e4886 to
9b404d8
Compare
Convert the multiple
RUNstatements into asetup.shbash script.shfmt -i 2 -ci -w bin/*sh