You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please do work for this task in a branch called issue-227-<service>, where service is one of 'view', 'mauka', 'makai', etc.
Currently, OPQ View uses a JSON file to specify configuration settings. This is more convenient to manage than environment variables. Let's use that approach consistently for all OPQ Cloud services.
Proposed approach
Create a top-level 'config' directory in your service implementation (i.e. opq/mauka/config, opq/makai/config, etc.)
Inside that directory, create a file called mauka.config.json (or makai.config.json, etc). These hold your "developer" configuration values. You can have one or many config files, whatever makes most sense to you.
Update the service code to obtain all configuration values from this json file, which will generally be made available to the service as the contents of a single env var called <SERVICE>_SETTINGS.
In the openpowerquality/docker repo, create a config/ directory, with subdirectories for each service (view, mauka, makai, health, boxupdater). Put in your config file(s) with "default" settings (which might be empty strings in the case of usernames, hostnames, or passwords).
Update docker-compose scripts and files to provide these config files to services.
Please do work for this task in a branch called issue-227-<service>, where service is one of 'view', 'mauka', 'makai', etc.
Currently, OPQ View uses a JSON file to specify configuration settings. This is more convenient to manage than environment variables. Let's use that approach consistently for all OPQ Cloud services.
Proposed approach
Create a top-level 'config' directory in your service implementation (i.e. opq/mauka/config, opq/makai/config, etc.)
Inside that directory, create a file called mauka.config.json (or makai.config.json, etc). These hold your "developer" configuration values. You can have one or many config files, whatever makes most sense to you.
Update the service code to obtain all configuration values from this json file, which will generally be made available to the service as the contents of a single env var called <SERVICE>_SETTINGS.
In the openpowerquality/docker repo, create a config/ directory, with subdirectories for each service (view, mauka, makai, health, boxupdater). Put in your config file(s) with "default" settings (which might be empty strings in the case of usernames, hostnames, or passwords).
Update docker-compose scripts and files to provide these config files to services.
Update https://openpowerquality.org/docs/cloud-installation.html#edit-configuration-files with documentation on any required edits to the default config files in order to bring up a new OPQ Cloud instance in a new host.
Edit your developer level documentation (i.e. https://openpowerquality.org/docs/cloud-mauka.html) to provide complete documentation of these configuration variables and their appropriate values.
The text was updated successfully, but these errors were encountered: