Skip to content
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

Easy environment customization #368

Open
TheFrozenFire opened this issue Jan 30, 2020 · 2 comments
Open

Easy environment customization #368

TheFrozenFire opened this issue Jan 30, 2020 · 2 comments

Comments

@TheFrozenFire
Copy link

@TheFrozenFire TheFrozenFire commented Jan 30, 2020

A common issue I'm finding amongst my various toolboxes is that I need to set up my environment variables differently depending on which toolbox I'm working out of. For instance, one toolbox may have a different distribution/version of a runtime like Java or PHP, and I need to point the runtime to the correct configuration paths for that particular version of the runtime.

Similarly, as a convenience function, it would be nice to be able to have my different toolboxes have different $GIT_HOME and $KUBECONFIG settings. I often have a toolbox for each "project" I'm working on, and those projects have a bunch of specific configuration.

This functionality could be accomplished by something as simple as a per-container bootstrap script that can be customized.

@srbaker

This comment has been minimized.

Copy link

@srbaker srbaker commented Feb 10, 2020

I came here looking for the same thing! I need to set AWS_PROFILE depending on which toolbox I'm in.

@HarryMichal

This comment has been minimized.

Copy link
Collaborator

@HarryMichal HarryMichal commented Feb 11, 2020

Thank you for mentioning this. I'm not sure if this is something Toolbox should do. The requested feature seems quite similar to what direnv does. But at the same time using direnv (used as an example; other tools could be used) requires it to be in every container? (not desired).

Just saying that, because I want to prevent reinventing the wheel if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.