-
Notifications
You must be signed in to change notification settings - Fork 691
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
Add configurable entrypoint to py3_image #2242
base: master
Are you sure you want to change the base?
Conversation
This makes entrypoint for py3_image configurable so that a user can provide path to a hermetic python environment.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
I wrote an essentially identical PR before discovering this one (#2247). It seems like this has been discussed a few times: It seems like the current direction is to override the entrypoint with an additional layer: Personally, I think this highlights a usability problem. Although users can extend the image using a separate target, this isn't the most intuitive, nor perhaps the best data model (the Maybe we should add support for something like |
In my opinion, overridden entrypoint is not the best approach, because it displaces the python binary target to be executed from the final entrypoint command. This way you should also add I see symlinking Your suggestion to add |
This Pull Request has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. |
This makes entrypoint for py3_image configurable so that a user can provide path to a hermetic python environment.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
Currently the Python binary is fixed as
/usr/bin/python
.What is the new behavior?
The Python binary can be choses by overrideing the
entrypoint
for example to point to a hermetic Python.Does this PR introduce a breaking change?
Other information