Skip to content

Commit

Permalink
review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mishaschwartz committed Jun 3, 2024
1 parent 2c3140f commit 56d1a7c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
22 changes: 12 additions & 10 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,18 @@
- The following default values have changed. If your deployment was using the old default value, update your
``env.local`` file to explicitly set the old default values.

| old variable name | new variable name | old default value | new default value |
|--------------------------------------------|--------------------------------------|-------------------------|:---------------------------|
| POSTGRES_PAVICS_USERNAME | BIRDHOUSE_POSTGRES_USERNAME | postgres-pavics | postgres-birdhouse |
| THREDDS_DATASET_LOCATION_ON_CONTAINER | (no change) | /pavics-ncml | /birdhouse-ncml |
| THREDDS_SERVICE_DATA_LOCATION_ON_CONTAINER | (no change) | /pavics-data | /birdhouse-data |
| (hardcoded) | BIRDHOUSE_POSTGRES_DB | pavics | birdhouse |
| PAVICS_LOG_DIR | BIRDHOUSE_LOG_DIR | /var/log/PAVICS | /var/log/birdhouse |
| (hardcoded) | GRAFANA_DEFAULT_PROVIDER_FOLDER | Local-PAVICS | Local-Birdhouse |
| (hardcoded) | GRAFANA_DEFAULT_PROVIDER_FOLDER_UUID | local-pavics | local-birdhouse |
| (hardcoded) | GRAFANA_PROMETHEUS_DATASOURCE_UUID | local_pavics_prometheus | local_birdhouse_prometheus |
| old variable name | new variable name | old default value | new default value |
|--------------------------------------------|--------------------------------------|---------------------------------|:------------------------------------------------------|
| POSTGRES_PAVICS_USERNAME | BIRDHOUSE_POSTGRES_USERNAME | postgres-pavics | postgres-birdhouse |
| THREDDS_DATASET_LOCATION_ON_CONTAINER | (no change) | /pavics-ncml | /birdhouse-datasets |
| THREDDS_SERVICE_DATA_LOCATION_ON_CONTAINER | (no change) | /pavics-data | /birdhouse-service-data |
| THREDDS_DATASET_LOCATION_ON_HOST | (no change) | '${DATA_PERSIST_ROOT}/ncml' | '${BIRDHOUSE_DATA_PERSIST_ROOT}/thredds-datasets' |
| THREDDS_SERVICE_DATA_LOCATION_ON_HOST | (no change) | '${DATA_PERSIST_ROOT}/datasets' | '${BIRDHOUSE_DATA_PERSIST_ROOT}/thredds-service-data' |
| (hardcoded) | BIRDHOUSE_POSTGRES_DB | pavics | birdhouse |
| PAVICS_LOG_DIR | BIRDHOUSE_LOG_DIR | /var/log/PAVICS | /var/log/birdhouse |
| (hardcoded) | GRAFANA_DEFAULT_PROVIDER_FOLDER | Local-PAVICS | Local-Birdhouse |
| (hardcoded) | GRAFANA_DEFAULT_PROVIDER_FOLDER_UUID | local-pavics | local-birdhouse |
| (hardcoded) | GRAFANA_PROMETHEUS_DATASOURCE_UUID | local_pavics_prometheus | local_birdhouse_prometheus |

Note that the `PAVICS_LOG_DIR` variable was actually hardcoded as `/var/log/PAVICS` in some scripts. If
`PAVICS_LOG_DIR` was set to anything other than `/var/log/PAVICS` you'll end up with inconsistent log outputs as
Expand Down
8 changes: 4 additions & 4 deletions birdhouse/components/thredds/default.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export THREDDS_IMAGE_URI='registry.hub.docker.com/${THREDDS_IMAGE}'
export THREDDS_ORGANIZATION="Birdhouse"
export THREDDS_ADDITIONAL_CATALOG=""

export THREDDS_DATASET_LOCATION_ON_CONTAINER='/birdhouse-ncml'
export THREDDS_SERVICE_DATA_LOCATION_ON_CONTAINER='/birdhouse-data'
export THREDDS_DATASET_LOCATION_ON_HOST='${BIRDHOUSE_DATA_PERSIST_ROOT}/ncml'
export THREDDS_SERVICE_DATA_LOCATION_ON_HOST='${BIRDHOUSE_DATA_PERSIST_ROOT}/datasets'
export THREDDS_DATASET_LOCATION_ON_CONTAINER='/birdhouse-datasets'
export THREDDS_SERVICE_DATA_LOCATION_ON_CONTAINER='/birdhouse-service-data'
export THREDDS_DATASET_LOCATION_ON_HOST='${BIRDHOUSE_DATA_PERSIST_ROOT}/thredds-datasets'
export THREDDS_SERVICE_DATA_LOCATION_ON_HOST='${BIRDHOUSE_DATA_PERSIST_ROOT}/thredds-service-data'
export THREDDS_DATASET_LOCATION_NAME='Datasets'
export THREDDS_SERVICE_DATA_LOCATION_NAME='Birdhouse'
export THREDDS_DATASET_URL_PATH='datasets'
Expand Down
1 change: 1 addition & 0 deletions birdhouse/optional-components/generic_bird/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
wps.cfg
postgres/credentials.env
postgres/docker-entrypoint-initdb.d/create-wps-databases.sql.template
config/canarie-api/canarie_api_monitoring.py
config/magpie/providers.cfg
config/magpie/permissions.cfg
Expand Down
2 changes: 1 addition & 1 deletion tests/test_read_configs_include.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# Set backwards compatible allowed to False explicitly since the current default
# is True when not executing through the CLI.
# tmut may add a bunch of messages to stderr if this is not set. This may cause confusion when trying to debug a
# tput may add a bunch of messages to stderr if this is not set. This may cause confusion when trying to debug a
# pytest error since these messages are unrelated to failing tests.
DEFAULT_BIRDHOUSE_ENV = {"BIRDHOUSE_BACKWARD_COMPATIBLE_ALLOWED": "False", "TERM": os.getenv("TERM", "")}

Expand Down

0 comments on commit 56d1a7c

Please sign in to comment.