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

Use env vars in configs #582

Merged
merged 4 commits into from
Jan 14, 2022
Merged

Use env vars in configs #582

merged 4 commits into from
Jan 14, 2022

Conversation

forman
Copy link
Member

@forman forman commented Jan 14, 2022

It is now possible to use environment variables in most xcube configuration files. Unix bash syntax is used, i.e. ${ENV_VAR_NAME} or $ENV_VAR_NAME.

Supported tools include

  • xcube gen --config CONFIG
  • xcube gen2 --stores STORES_CONFIG --service SERVICE_CONFIG
  • xcube serve -c CONFIG

Closes #580.

Checklist:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/source/*
  • Changes documented in CHANGES.md
  • AppVeyor CI passes
  • Test coverage remains or increases (target 100%)

Remember to close associated issues after merge!

@forman forman requested a review from AliceBalfanz January 14, 2022 11:52
@forman forman self-assigned this Jan 14, 2022
@forman forman added the enhancement New feature or request label Jan 14, 2022
Copy link
Contributor

@AliceBalfanz AliceBalfanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works very well! Thank you for the fast adjustments!

@forman forman merged commit f7091fa into master Jan 14, 2022
@forman forman deleted the forman-580-use_env_vars_in_configs branch January 19, 2022 07:36
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

Successfully merging this pull request may close these issues.

xcube gen2 DataStore configuration to understand env var references
2 participants