-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Overview This version of canarie-api permits running the proxy (nginx) container independently of the canarie-api application. This makes it easier to monitor the logs of canarie-api and proxy containers simultaneously and allows for the configuration files for canarie-api to be mapped to the canarie-api containers where appropriate. ## Changes **Non-breaking changes** - New component version canarie-api:1.0.0 **Breaking changes** ## Related Issue / Discussion - Resolves [issue id](url) ## Additional Information Links to other issues or sources. - This might make parsing the nginx logs slightly easier as well which could help with #12 and #444 ## CI Operations <!-- The test suite can be run using a different DACCS config with ``birdhouse_daccs_configs_branch: branch_name`` in the PR description. To globally skip the test suite regardless of the commit message use ``birdhouse_skip_ci`` set to ``true`` in the PR description. Note that using ``[skip ci]``, ``[ci skip]`` or ``[no ci]`` in the commit message will override ``birdhouse_skip_ci`` from the PR description. --> birdhouse_daccs_configs_branch: master birdhouse_skip_ci: false
- Loading branch information
Showing
48 changed files
with
171 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.2.2 2024-05-11T03:52:01Z | ||
2.3.0 2024-05-14T13:43:50Z |
2 changes: 1 addition & 1 deletion
2
birdhouse/components/canarie-api/config/proxy/conf.extra-service.d/canarie-api.conf.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
version: "3.4" | ||
|
||
x-logging: | ||
&default-logging | ||
driver: "json-file" | ||
options: | ||
max-size: "50m" | ||
max-file: "10" | ||
|
||
services: | ||
canarie-api: | ||
image: ${CANARIE_IMAGE} | ||
container_name: canarie-api | ||
volumes: | ||
- canarie-data:/data/ | ||
- ./components/canarie-api/docker_configuration.py:/config/docker_configuration.py:ro | ||
- ./components/canarie-api/entrypoint:/entrypoint:ro | ||
environment: | ||
CANARIE_API_CONFIG_FN: /config/docker_configuration.py | ||
CANARIE_MONITORING_EXTRA_CONF_DIR: ${CANARIE_MONITORING_EXTRA_CONF_DIR} | ||
restart: always | ||
entrypoint: /entrypoint | ||
logging: *default-logging | ||
|
||
canarie-api-cron: | ||
image: ${CANARIE_IMAGE} | ||
container_name: canarie-api-cron | ||
depends_on: | ||
- canarie-api | ||
# The volumes and environment should be the same as the canarie-api container except for the proxy-logs volume | ||
volumes: | ||
- canarie-data:/data/ | ||
- ./components/canarie-api/docker_configuration.py:/config/docker_configuration.py:ro | ||
- ./components/canarie-api/entrypoint-cron:/entrypoint:ro | ||
- proxy-logs:/logs/:ro # aligns with the DATABASE["access_log"] value in docker_configuration.py.template | ||
environment: | ||
CANARIE_API_CONFIG_FN: /config/docker_configuration.py | ||
CANARIE_MONITORING_EXTRA_CONF_DIR: ${CANARIE_MONITORING_EXTRA_CONF_DIR} | ||
restart: always | ||
entrypoint: /entrypoint | ||
logging: *default-logging | ||
|
||
volumes: | ||
canarie-data: | ||
proxy-logs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
#!/bin/sh -x | ||
|
||
# hack needed for Boreas and Medus only else cronjob do not fire | ||
# this hack should still work for other deployments | ||
# remove if cause problem with newer version of canarieapi | ||
touch /etc/cron.d/canarieapi-cron | ||
|
||
pip install requests-cache | ||
|
||
# chain existing cmd | ||
exec /bin/sh -c "\ | ||
env >> /etc/environment && \ | ||
cron && \ | ||
nginx && \ | ||
gunicorn -b 0.0.0.0:2000 --workers 1 --log-level=DEBUG --timeout 30 -k gevent canarieapi.wsgi \ | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh -x | ||
|
||
# hack needed for Boreas and Medus only else cronjob do not fire | ||
# this hack should still work for other deployments | ||
# remove if cause problem with newer version of canarieapi | ||
touch /etc/cron.d/canarieapi-cron | ||
|
||
pip install requests-cache | ||
|
||
# chain existing cmd | ||
exec /bin/sh -c "\ | ||
env >> /etc/environment && \ | ||
cron -f | ||
" |
5 changes: 3 additions & 2 deletions
5
birdhouse/components/cowbird/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
version: "3.4" | ||
|
||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
# NOTE: | ||
# Prefix '0_' to the mounted file name to ensure it is loaded first by 'birdhouse/components/canarie-api/docker_configuration.py' | ||
# This ensures that the alphabetical loading order it defines will first load the default configs, then will load | ||
# the Cowbird config, and then all python configuration within 'optional-components/canarie-api-full-monitoring'. | ||
# It is important to load Cowbird before, as the full monitoring need to know if 'Cowbird' service is added to the | ||
# stack in order to apply the corresponding public endpoint conditionally. | ||
- ./components/cowbird/config/proxy/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/0_cowbird_config.py:ro | ||
- ./components/cowbird/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/0_cowbird_config.py:ro | ||
canarie-api-cron: *canarie-volumes |
3 changes: 2 additions & 1 deletion
3
birdhouse/components/finch/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: "3.4" | ||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
- ./components/finch/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/finch_canarie_api_monitoring.py:ro | ||
canarie-api-cron: *canarie-volumes |
3 changes: 2 additions & 1 deletion
3
birdhouse/components/geoserver/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: "3.4" | ||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
- ./components/geoserver/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/geoserver_canarie_api_monitoring.py:ro | ||
canarie-api-cron: *canarie-volumes |
3 changes: 2 additions & 1 deletion
3
birdhouse/components/hummingbird/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: "3.4" | ||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
- ./components/hummingbird/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/hummingbird_canarie_api_monitoring.py:ro | ||
canarie-api-cron: *canarie-volumes |
3 changes: 2 additions & 1 deletion
3
birdhouse/components/jupyterhub/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: "3.4" | ||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
- ./components/jupyterhub/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/jupyterhub_canarie_api_monitoring.py:ro | ||
canarie-api-cron: *canarie-volumes |
3 changes: 2 additions & 1 deletion
3
birdhouse/components/magpie/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: "3.4" | ||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
- ./components/magpie/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/magpie_canarie_api_monitoring.py:ro | ||
canarie-api-cron: *canarie-volumes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
birdhouse/components/raven/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: "3.4" | ||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
- ./components/raven/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/raven_canarie_api_monitoring.py:ro | ||
canarie-api-cron: *canarie-volumes |
3 changes: 2 additions & 1 deletion
3
birdhouse/components/stac/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: "3.4" | ||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
- ./components/stac/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/stac_canarie_api_monitoring.py:ro | ||
canarie-api-cron: *canarie-volumes |
3 changes: 2 additions & 1 deletion
3
birdhouse/components/thredds/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: "3.4" | ||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
- ./components/thredds/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/thredds_canarie_api_monitoring.py:ro | ||
canarie-api-cron: *canarie-volumes |
3 changes: 2 additions & 1 deletion
3
birdhouse/components/twitcher/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: "3.4" | ||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
- ./components/twitcher/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/twitcher_canarie_api_monitoring.py:ro | ||
canarie-api-cron: *canarie-volumes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
birdhouse/components/wps_outputs-volume/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: "3.4" | ||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
- ./components/wps_outputs-volume/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/wps_outputs-volume_canarie_api_monitoring.py:ro | ||
canarie-api-cron: *canarie-volumes |
3 changes: 2 additions & 1 deletion
3
birdhouse/deprecated-components/catalog/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: "3.4" | ||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
- ./deprecated-components/catalog/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/catalog_canarie_api_monitoring.py:ro | ||
canarie-api-cron: *canarie-volumes |
3 changes: 2 additions & 1 deletion
3
birdhouse/deprecated-components/flyingpigeon/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: "3.4" | ||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
- ./deprecated-components/flyingpigeon/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/flyingpigeon_canarie_api_monitoring.py:ro | ||
canarie-api-cron: *canarie-volumes |
3 changes: 2 additions & 1 deletion
3
birdhouse/deprecated-components/frontend/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: "3.4" | ||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
- ./deprecated-components/frontend/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/frontend_canarie_api_monitoring.py:ro | ||
canarie-api-cron: *canarie-volumes |
3 changes: 2 additions & 1 deletion
3
birdhouse/deprecated-components/malleefowl/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: "3.4" | ||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
- ./deprecated-components/malleefowl/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/malleefowl_canarie_api_monitoring.py:ro | ||
canarie-api-cron: *canarie-volumes |
3 changes: 2 additions & 1 deletion
3
birdhouse/deprecated-components/phoenix/config/canarie-api/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
version: "3.4" | ||
services: | ||
proxy: | ||
canarie-api: &canarie-volumes | ||
volumes: | ||
- ./deprecated-components/phoenix/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/phoenix_canarie_api_monitoring.py:ro | ||
canarie-api-cron: *canarie-volumes |
Oops, something went wrong.