-
Notifications
You must be signed in to change notification settings - Fork 101
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
Yf make shell replacement optional #16
base: main
Are you sure you want to change the base?
Conversation
I'm having trouble testing this because I can't echo I could repackage one of the docker images and provide it a more complex ENTRYPOINT, but I'm not sure how to do this.., any suggestions regarding the test @addnab ? |
Any ideas on how to test, or just take it as is? @addnab |
Hi @yfarjoun I'll take a look on Friday if it's ok. I'll work on adding a test for this as well. |
perfect! thanks. I just didn't want this to fall off your radar. I'm currently using a branch on my fork and I always prefer to move back to the "source" 😄 |
I think that I don't like the design of this change...I'mm working on a different one. |
0d29800
to
4360d75
Compare
32fb57c
to
7390192
Compare
author Yossi Farjoun <[email protected]> 1617479686 -0400 committer Yossi Farjoun <[email protected]> 1618455120 -0400 Change the way the script is run. instead of modfying the ENTRYPOINT, we will simply add the "shell" (default sh) and the "script_prefix" (default -c) and then the script. That way the possible comple entry point is not disturbed. if a user would like to remove the ENTRYPOINT they can provide an "option" "--entrypoint ''" for example.
77360d1
to
2f4bbe9
Compare
This PR enables the use of images with complex default ENTRYPOINT arrays.
In essence, it leaves the original entry point as it by default and simply puts a "sh -c <script>" as the comment. if the user would like to remove the entry point they can put
--entrypoint=""
as an option.If the user would like to not use a shell or a prefix (for example because their entry point already has that) they can redefine each of them separately.