diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 2bac4e005..f6aca57cd 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.6.0 +current_version = 2.6.1 commit = True tag = False tag_name = {new_version} @@ -30,11 +30,11 @@ search = {current_version} replace = {new_version} [bumpversion:file:RELEASE.txt] -search = {current_version} 2024-11-19T13:53:14Z +search = {current_version} 2024-11-22T15:57:16Z replace = {new_version} {utcnow:%Y-%m-%dT%H:%M:%SZ} [bumpversion:part:releaseTime] -values = 2024-11-19T13:53:14Z +values = 2024-11-22T15:57:16Z [bumpversion:file(version):birdhouse/components/canarie-api/docker_configuration.py.template] search = 'version': '{current_version}' diff --git a/CHANGES.md b/CHANGES.md index b20880015..cdde4e354 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -17,6 +17,24 @@ [//]: # (list changes here, using '-' for each new entry, remove this when items are added) +[2.6.1](https://github.com/bird-house/birdhouse-deploy/tree/2.6.1) (2024-11-22) +------------------------------------------------------------------------------------------------------------------ + +## Fixes + +- Fix regressions introduced by PR #359 "Flexible locations for data served by thredds" + + In [PR #359](https://github.com/bird-house/birdhouse-deploy/pull/359/): + + `secure-thredds/config/magpie/permissions.cfg` started to use variable but was never renamed to `.template` + so those variable never get template expanded + (commit [317d96c3](https://github.com/bird-house/birdhouse-deploy/commit/317d96c39db7a6d79d1568a7094441ccdedc55ae)). + + `bootstrap-testdata` default value was removed but did not source `read-configs.include.sh` so the variable + stayed blank (commit [4ab0fc74](https://github.com/bird-house/birdhouse-deploy/commit/4ab0fc74cb8fa601d75ecfc2a94749b23f60109c)). + The default value was there initially so the script can be used in standalone situation (not inside a checkout). + + [2.6.0](https://github.com/bird-house/birdhouse-deploy/tree/2.6.0) (2024-11-19) ------------------------------------------------------------------------------------------------------------------ diff --git a/Makefile b/Makefile index 178116bd2..4898723ba 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # Generic variables override SHELL := bash override APP_NAME := birdhouse-deploy -override APP_VERSION := 2.6.0 +override APP_VERSION := 2.6.1 # utility to remove comments after value of an option variable override clean_opt = $(shell echo "$(1)" | $(_SED) -r -e "s/[ '$'\t'']+$$//g") diff --git a/README.rst b/README.rst index 3d0a9963c..1beff68f2 100644 --- a/README.rst +++ b/README.rst @@ -18,13 +18,13 @@ for a full-fledged production platform. * - citation - | |citation| -.. |commits-since| image:: https://img.shields.io/github/commits-since/bird-house/birdhouse-deploy/2.6.0.svg +.. |commits-since| image:: https://img.shields.io/github/commits-since/bird-house/birdhouse-deploy/2.6.1.svg :alt: Commits since latest release - :target: https://github.com/bird-house/birdhouse-deploy/compare/2.6.0...master + :target: https://github.com/bird-house/birdhouse-deploy/compare/2.6.1...master -.. |latest-version| image:: https://img.shields.io/badge/tag-2.6.0-blue.svg?style=flat +.. |latest-version| image:: https://img.shields.io/badge/tag-2.6.1-blue.svg?style=flat :alt: Latest Tag - :target: https://github.com/bird-house/birdhouse-deploy/tree/2.6.0 + :target: https://github.com/bird-house/birdhouse-deploy/tree/2.6.1 .. |readthedocs| image:: https://readthedocs.org/projects/birdhouse-deploy/badge/?version=latest :alt: ReadTheDocs Build Status (latest version) diff --git a/RELEASE.txt b/RELEASE.txt index 9200ea1cd..e7298cd33 100644 --- a/RELEASE.txt +++ b/RELEASE.txt @@ -1 +1 @@ -2.6.0 2024-11-19T13:53:14Z +2.6.1 2024-11-22T15:57:16Z diff --git a/birdhouse/components/canarie-api/docker_configuration.py.template b/birdhouse/components/canarie-api/docker_configuration.py.template index fc82b7d34..22f6cb7b5 100644 --- a/birdhouse/components/canarie-api/docker_configuration.py.template +++ b/birdhouse/components/canarie-api/docker_configuration.py.template @@ -108,8 +108,8 @@ SERVICES = { # NOTE: # Below version and release time auto-managed by 'make VERSION=x.y.z bump'. # Do NOT modify it manually. See 'Tagging policy' in 'birdhouse/README.rst'. - 'version': '2.6.0', - 'releaseTime': '2024-11-19T13:53:14Z', + 'version': '2.6.1', + 'releaseTime': '2024-11-22T15:57:16Z', 'institution': '${BIRDHOUSE_INSTITUTION}', 'researchSubject': '${BIRDHOUSE_SUBJECT}', 'supportEmail': '${BIRDHOUSE_SUPPORT_EMAIL}', @@ -141,8 +141,8 @@ PLATFORMS = { # NOTE: # Below version and release time auto-managed by 'make VERSION=x.y.z bump'. # Do NOT modify it manually. See 'Tagging policy' in 'birdhouse/README.rst'. - 'version': '2.6.0', - 'releaseTime': '2024-11-19T13:53:14Z', + 'version': '2.6.1', + 'releaseTime': '2024-11-22T15:57:16Z', 'institution': '${BIRDHOUSE_INSTITUTION}', 'researchSubject': '${BIRDHOUSE_SUBJECT}', 'supportEmail': '${BIRDHOUSE_SUPPORT_EMAIL}', diff --git a/birdhouse/optional-components/secure-thredds/config/magpie/.gitignore b/birdhouse/optional-components/secure-thredds/config/magpie/.gitignore new file mode 100644 index 000000000..e4339d698 --- /dev/null +++ b/birdhouse/optional-components/secure-thredds/config/magpie/.gitignore @@ -0,0 +1 @@ +permissions.cfg diff --git a/birdhouse/optional-components/secure-thredds/config/magpie/permissions.cfg b/birdhouse/optional-components/secure-thredds/config/magpie/permissions.cfg.template similarity index 100% rename from birdhouse/optional-components/secure-thredds/config/magpie/permissions.cfg rename to birdhouse/optional-components/secure-thredds/config/magpie/permissions.cfg.template diff --git a/birdhouse/scripts/bootstrap-testdata b/birdhouse/scripts/bootstrap-testdata index 0c2f4c278..20c680bce 100755 --- a/birdhouse/scripts/bootstrap-testdata +++ b/birdhouse/scripts/bootstrap-testdata @@ -10,8 +10,22 @@ # Need write-access to DATASET_ROOT (/data/datasets/). +THIS_FILE="$(readlink -f "$0" || realpath "$0")" +THIS_DIR="$(dirname "${THIS_FILE}")" +COMPOSE_DIR="${COMPOSE_DIR:-$(dirname "${THIS_DIR}")}" + +if [ -f "${COMPOSE_DIR}/read-configs.include.sh" ]; then + . "${COMPOSE_DIR}/read-configs.include.sh" + + # Get THREDDS_SERVICE_DATA_LOCATION_ON_HOST, BIRDHOUSE_DATA_PERSIST_ROOT + read_configs +fi + + if [ -z "${DATASET_ROOT}" ]; then - DATASET_ROOT="${BIRDHOUSE_DATA_PERSIST_ROOT}/${THREDDS_SERVICE_DATA_LOCATION_ON_HOST}" + # Default for when unable to source read-configs.include.sh (ie when + # used standalone outside of the checkout). + DATASET_ROOT="${DATASET_ROOT:-${THREDDS_SERVICE_DATA_LOCATION_ON_HOST:-${BIRDHOUSE_DATA_PERSIST_ROOT:-/data}/datasets}}" fi FROM_SERVER=${FROM_SERVER:-"https://pavics.ouranos.ca/twitcher/ows/proxy/thredds/fileServer/birdhouse"} @@ -39,6 +53,8 @@ for afile in ${FILE_LIST}; do if [ ! -d "${PARENT_DIRS}" ]; then mkdir -p "${PARENT_DIRS}" fi + set -e # Fail on error. curl "${FROM_SERVER}/${afile}" --output "${afile}" + set +e fi done diff --git a/docs/source/conf.py b/docs/source/conf.py index a6e0fba86..f801553bd 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -69,9 +69,9 @@ # built documents. # # The short X.Y version. -version = '2.6.0' +version = '2.6.1' # The full version, including alpha/beta/rc tags. -release = '2.6.0' +release = '2.6.1' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.