Source environments from external files
See original GitHub issueI have some environment definitions which are quite large with many packages. It would be convenient to have the option to source any such environment from a separate file, rather than including the environment inline within qhub-config.yaml.
How about if the environments
section in the config file allowed null values, which means that the content should be pulled from a file with that name in the repository root directory?
environments:
"environment-special.yaml":
# null value allowed, meaning load from separate file
It looks like it should be doable with some modifications to the source code around here:
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Load Angular configuration from external source - jooooel
Introduction. In this post I'm going to show how we can keep the configuration external to an Angular application.
Read more >How to import environmental variables form external file using ...
Basically I have a list of environmental variables that I need to set from an external file. Here's what i'm trying to do......
Read more >Lesson #8: The environment - Manage External Data Sources
As a new FileMaker user/developer the whole concept of an external data source may never come up. However, understanding how it works and ......
Read more >Environments and deployments - GitLab Docs
Go from source files to public pages. With GitLab Route Maps, you can go directly from source files to public pages in the...
Read more >Load environment variables from external file #46295 - GitHub
Issue: We can't load env variables from an external file with .NET Core. It seems it's only implemented for NodeJS to use envFile...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I also like and prefer the idea of externalized environment files.
I have encountered this behavior as well and have adopted the same approach as a work around.
An idea just occurred to me, is that maybe a good workflow for qhub/conda-store would be to solve the changed environments in the render phase or in CI prior to deployment, exporting the pinned environments to a managed folder. This would help catch failed environments earlier and more explicitly, rather than the current experience of deploying and then waiting and hoping the environment solves. @costrouc, I’d be eager for your thoughts on this idea.
Thinking about this some more, FWIW I think it could be better to just let users manage environments by controlling the files in the
environments
directory themselves. I.e., remove the environments section from qhub-config.yaml, and during deployment figure out what environments are present by inspecting theenvironments
directory…