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

Using environment values for actinia templates #39

Merged
merged 11 commits into from
Apr 13, 2023
Merged

Conversation

anikaweinmann
Copy link
Member

@anikaweinmann anikaweinmann commented Apr 13, 2023

Environment values should be able to be used inside actinia templates

  • the environment depending values will be set via environment variables with the prefix TEMPLATE_VALUE_, then the plugin will use these values to set the values for the actinia module; e.g.
    • env variable: TEMPLATE_VALUE_DB_CONNECTION
    • and in the actinia module template {{ db_connection }}
    • the default env variable value can be overwritten by setting db_connection in the process chain of the actinia module
  • by requesting an actinia module the plugin has to check if the parameter is set as environment variable. If yes:
    • change optional=True
    • add to description "default value exist for this installation"

Additional, fixing for GRASS GIS modules with only one parameter.

Copy link
Member

@mmacata mmacata left a comment

Choose a reason for hiding this comment

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

Thanks! Cool! Just found a typo, else pls merge!

actinia_module_plugin/core/modules/actinia_common.py Outdated Show resolved Hide resolved
docker/actinia-module-plugin-test/Dockerfile Outdated Show resolved Hide resolved
@anikaweinmann anikaweinmann merged commit 016611d into main Apr 13, 2023
@anikaweinmann anikaweinmann deleted the env_vars branch April 17, 2023 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants