-
Notifications
You must be signed in to change notification settings - Fork 33
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
Why are entrypoints specified individually for .profile and not loaded dynamically? #721
Comments
yes, reason is remote(shell) connections. (I've spent countless hours on this and is many years ago, so I hope I remember this correctly). If you want to run something during a shell connection I would suggest to add your stuff directly to https://github.com/uselagoon/lagoon-images/blob/main/images/commons/lagoon/entrypoints/55-generate-env.sh or maybe source it from there, as the |
@Schnitzel - Thanks for this! Two follow-ups...
|
we've just talked about this, and think that providing an empty |
nice - that's great @tobybellwood |
One of our projects uses a custom entrypoint to set some environment variables. Looking at "~/.profile" I see that the entrypoints are individually sourced and not loaded using /lagoon/entrypoints.sh
This means that adding a custom entrypoint (EG: /lagoon/entrypoints/99-add-a-runtime-var.sh) don't get automatically sourced to the CLI shell environment when accessing the container remotely.
Is there a reason the entrypoints are sourced individually in ~/.profile? Would it not make sense for the ~/.profile to call /lagoon/entrypoints.sh to create a congruent experience for the shell as well as the container runtime CMD environment?
The text was updated successfully, but these errors were encountered: