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

Support environment variable interpolation #6

Closed
arctic-hen7 opened this issue Jun 23, 2021 · 2 comments
Closed

Support environment variable interpolation #6

arctic-hen7 opened this issue Jun 23, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@arctic-hen7
Copy link
Owner

This feature could easily be added by allowing the definition of a .env parameter or the like in long-form notation, along with a separate object [env_files] or similar in which the user could define a list of files to pull in environment variables from (in addition to any provided to Bonnie itself on the command line). The system would then fail gracefully if a variable isn't defined.

I think this feature would make developing more complex and integrated systems much easier. For example, if you define Docker ports to be opened in an environment variable file and then interpolate that into docker-compose.yml, if you need to expose those same ports in a docker-compose run command you alias with Bonnie, you should be able to read from that very same file.

@arctic-hen7
Copy link
Owner Author

I personally think this should be relatively high priority, especially given it should be reasonably simple to implement.

@arctic-hen7 arctic-hen7 self-assigned this Jun 23, 2021
@arctic-hen7 arctic-hen7 added the enhancement New feature or request label Jun 23, 2021
@arctic-hen7
Copy link
Owner Author

All done! Please let me know if there's anything missing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant