question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Source environments from external files

See original GitHub issue

I 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:

https://github.com/Quansight/qhub/blob/4cc393ec8ba50fd850b0f07781446229138809f0/qhub/template/hooks/post_gen_project.py#L24

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
brl0commented, Jul 6, 2021

I also like and prefer the idea of externalized environment files.

for more complicated environments, although I can solve and install them locally, they fail to solve and install on the deployed qhub service, even after waiting many hours

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.

1reaction
alimanfoocommented, Jul 3, 2021

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 the environments directory…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found