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

Update DEFAULT_CONF_DIRS to the minimal components required to deploy the stack #399

Merged
merged 24 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b5bc400
move all components to the components/ directory
mishaschwartz Nov 7, 2023
357da73
fix gitignore entry that shouldn't be there
mishaschwartz Nov 7, 2023
a699efb
update default and extra conf dirs
mishaschwartz Nov 7, 2023
66ee207
suppress postgres warning if not running
mishaschwartz Nov 7, 2023
35a8da3
change default root location
mishaschwartz Nov 7, 2023
7a2a627
update tests
mishaschwartz Nov 8, 2023
1c02991
update changes
mishaschwartz Nov 8, 2023
914f2ea
fix path for example component references
mishaschwartz Nov 8, 2023
6517fd3
allow jupyterhub landing page to be default when jupyterhub is enabled
mishaschwartz Nov 8, 2023
8a66b2e
review suggestion updates
mishaschwartz Nov 9, 2023
95aa509
Merge branch 'master' into minimal-components
mishaschwartz Nov 29, 2023
efd7e4c
remove old comment about mongodb for cowbird
mishaschwartz Nov 29, 2023
f47480e
update moved components with recent updates to master
mishaschwartz Dec 7, 2023
9100600
Add warning about the magpie login page as a homepage
mishaschwartz Dec 7, 2023
a1a1d05
remove geoserver's magpie providers file from gitignore (shouldn't ha…
mishaschwartz Dec 7, 2023
e424083
add warning to proxy/default.env too
mishaschwartz Dec 7, 2023
227a028
update tests
mishaschwartz Dec 7, 2023
39e7a6c
Merge branch 'master' into minimal-components
mishaschwartz Dec 7, 2023
adbd1f5
update tests
mishaschwartz Dec 7, 2023
1e32bcf
Merge branch 'master' into minimal-components
mishaschwartz Dec 8, 2023
5ea5106
add simple component descriptions (to be fleshed out later)
mishaschwartz Dec 8, 2023
a7f1b81
fix reference to geoserver endpoint
mishaschwartz Dec 8, 2023
9ff694a
more comment updates
mishaschwartz Dec 11, 2023
48e6f21
Bump version: 1.42.2 → 2.0.0
mishaschwartz Dec 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,25 @@
[Unreleased](https://github.com/bird-house/birdhouse-deploy/tree/master) (latest)
------------------------------------------------------------------------------------------------------------------

[//]: # (list changes here, using '-' for each new entry, remove this when items are added)
## Changes

- Update `DEFAULT_CONF_DIRS` to the minimal components required to deploy the stack

Changes `DEFAULT_CONF_DIRS` to refer exclusively to the proxy, magpie, twitcher, stac, and cowbird components.
Also moves all components that were previously under the `birdhouse/config` directory to the `birdhouse/components`
directory. This removes the arbitrary distinction between these groups of components that didn't have any functional
or logical reason.

Because this change updates the default components, this is not backwards compatible unless the following changes are
made to the local environment file (`birdhouse/env.local` by default):

- add any components no longer in the `DEFAULT_CONF_DIRS` list to the `EXTRA_CONF_DIRS` list.
For example, to keep the jupyterhub component enabled, add `./components/jupyterhub` to the `EXTRA_CONF_DIRS` list.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Given that ./components/jupyterhub is not enabled by default anymore, but ./components/stac is, it might be worth mentioning that adding PROXY_ROOT_LOCATION explicitly could be required depending on which components are enabled, and which one the node manager desires to put as default redirect (if any).


- update the `PROXY_ROOT_LOCATION` to redirect the root path `/` to an enabled component. By default, this will
redirect to Magpie's landing page, unless jupyterhub is enabled, in which case it will redirect to jupyterhub's
landing page.
If any other behaviour is desired, `PROXY_ROOT_LOCATION` should be updated in the `env.local` file.

[1.37.1](https://github.com/bird-house/birdhouse-deploy/tree/1.37.1) (2023-11-03)
------------------------------------------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions birdhouse/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./config
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since we are purposely moving components, should we consider leaving this un-ignored?
Could help detect an invalid definition that refers to the old path.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think we have to ignore it so that the autoupdate code works. Right @tlvu ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Since it would be a major update that could remove components if misconfigured, I guess it that it would feel safer to purposely break the autoupdate to have node admins make sure they set up their EXTRA_CONF_DIRS properly and clean up leftover configs if applicable before updating. However, if others don't feel this could be an issue, I'm fine with having the gitignore also. I'm not personally using autoupdate.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not either so let's let @tlvu decide this one

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd rather prefer not breaking the autodeploy. We had already the plan to do this: add the new paths in advance to env.local so it is already forward compatible when this PR merge so no manual interventions required.

However I would also ping PCIC in this PR so they are aware of this major change.

2 changes: 1 addition & 1 deletion birdhouse/README.rst
mishaschwartz marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ Release Procedure
* Run ``git push --tags`` to upload the new version.


.. _nginx.conf: ./config/proxy/nginx.conf
.. _nginx.conf: ./components/proxy/nginx.conf
.. _default.env: ./default.env
.. _`.bumpversion.cfg`: ../.bumpversion.cfg
.. _CHANGES.md: ../CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "3.4"
services:
proxy:
volumes:
- ./components/canarie-api/config/proxy/conf.extra-service.d:/etc/nginx/conf.extra-service.d/canarie-api:ro
- ./components/canarie-api/docker_configuration.py:/config/docker_configuration.py
- ./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}
entrypoint: /entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export PROXY_IMAGE="pavics/canarieapi:0.7.1"

# add any component that this component requires to run
COMPONENT_DEPENDENCIES="
./config/proxy
./components/proxy
"
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ services:
cowbird-worker:
env_file:
# user/password for admin session to perform permission sync updates
- ./config/magpie/postgres-credentials.env
- ./components/magpie/postgres-credentials.env
7 changes: 6 additions & 1 deletion birdhouse/components/cowbird/default.env
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,14 @@ DELAYED_EVAL="
COWBIRD_MONGODB_DATA_DIR
"

COMPONENT_DEPENDENCIES="
$COMPONENT_DEPENDENCIES
./components/magpie
"

# this dependency is only required if the mongo instance is the one provided in config/mongodb.
# (include this for Cowbird<2.0.0)
#COMPONENT_DEPENDENCIES="
# $COMPONENT_DEPENDENCIES
# ./config/mongodb
# ./components/mongodb
#"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Technically, component/magpie should be in there, otherwise Cowbird doesn't really have anything to interact with.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we even keep this since "this dependency is only required if the mongo instance is the one provided in config/mongodb (include this for Cowbird<2.0.0)"

Is cowbird still <2.0.0? Else this comment block not needed anymore?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I wouldn't worry about cowbird<2.0.0. No reason to go back. Only add the relevant current dependencies.

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's what I thought, no need to go back to older cowbird so no need to keep this comment block about adding mongodb as dependencies.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok, I'll remove it

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
proxy:
volumes:
- ./components/finch/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/finch_canarie_api_monitoring.py:ro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
magpie:
volumes:
- ./components/finch/config/magpie/providers.cfg:${MAGPIE_PROVIDERS_CONFIG_PATH}/finch-providers.cfg:ro
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export WEAVER_WPS_PROVIDERS="

# add any component that this component requires to run
COMPONENT_DEPENDENCIES="
./config/wps_outputs-volume
./config/postgres
./components/wps_outputs-volume
./components/postgres
"

OPTIONAL_VARS="
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
HTTP_PORT: 5000
PYWPS_CFG: /wps.cfg
volumes:
- ./config/finch/wps.cfg:/wps.cfg
- ./components/finch/wps.cfg:/wps.cfg
# - data:/opt/birdhouse/var/lib
- /tmp
restart: always
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ service-config.json
geoserver_canarie_api_monitoring.py
geoserver-magpie-provider.cfg
config/proxy/canarie_api_monitoring.py
config/magpie/providers.cfg
Copy link
Collaborator

Choose a reason for hiding this comment

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

Geoserver do not add to magpie providers anymore? But should we still keep this old ignore to avoid breaking autodeploy?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We need to remove this so that future changes to the providers.cfg file won't be ignored. It is no longer generated from a template file, it is part of the source code now.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh this is part of the source code now ! What would be the inconvenient to keep it as a template?

We do not need any template substitutions now but we might need in the future so unless we are 100% sure we will never need substitution, I'd rather keep it a template.

Anyways, let's forget about this file but for future files that are already a template, I would still keep them as template, even if we do not need substitution anymore.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok let's leave this for now. I'd like to discuss this further at some point though because this feels very weird to me. It feels like we're adding a bunch of unnecessary restrictions to the code to avoid conflicts with the autoupdate mechanism.

Another reason why I think #362 is a good idea. Let's discuss this further on that PR though

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
proxy:
volumes:
- ./components/geoserver/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/geoserver_canarie_api_monitoring.py:ro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
magpie:
volumes:
- ./components/geoserver/config/magpie/providers.cfg:${MAGPIE_PROVIDERS_CONFIG_PATH}/geoserver-providers.cfg:ro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
proxy:
volumes:
- ./components/geoserver/config/proxy/conf.extra-service.d:/etc/nginx/conf.extra-service.d/geoserver:ro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
proxy:
volumes:
- ./components/hummingbird/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/hummingbird_canarie_api_monitoring.py:ro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
magpie:
volumes:
- ./components/hummingbird/config/magpie/providers.cfg:${MAGPIE_PROVIDERS_CONFIG_PATH}/hummingbird-providers.cfg:ro
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export WEAVER_WPS_PROVIDERS="

# add any component that this component requires to run
COMPONENT_DEPENDENCIES="
./config/postgres
./config/wps_outputs-volume
./config/data-volume
./components/postgres
./components/wps_outputs-volume
./components/data-volume
"

OPTIONAL_VARS="
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
environment:
HOSTNAME: $HOSTNAME
volumes:
- ./config/hummingbird/custom.cfg:/opt/birdhouse/src/hummingbird/custom.cfg
- ./components/hummingbird/custom.cfg:/opt/birdhouse/src/hummingbird/custom.cfg
depends_on:
- postgres
restart: always
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
proxy:
volumes:
- ./components/jupyterhub/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/jupyterhub_canarie_api_monitoring.py:ro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
magpie:
volumes:
- ./components/jupyterhub/config/magpie/providers.cfg:${MAGPIE_PROVIDERS_CONFIG_PATH}/jupyter.cfg:ro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
proxy:
volumes:
- ./components/jupyterhub/config/proxy/conf.extra-service.d:/etc/nginx/conf.extra-service.d/jupyterhub:ro
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ export JUPYTERHUB_CONFIG_OVERRIDE=""
# recommended as it may permit unauthorized users from accessing jupyterhub.
export JUPYTERHUB_AUTHENTICATOR_AUTHORIZATION_URL='http://twitcher:8000/ows/verify/jupyterhub'

# Set the PROXY_ROOT_LOCATION to jupyterhub's landing page by default. Added for backwards compatibility
# where this was the default when the jupyterhub component is enabled.
export PROXY_ROOT_LOCATION="return 302 https://\$host/jupyter/hub/login;"

export DELAYED_EVAL="
$DELAYED_EVAL
JUPYTERHUB_USER_DATA_DIR
Expand Down Expand Up @@ -93,5 +97,5 @@ OPTIONAL_VARS="

# add any component that this component requires to run
COMPONENT_DEPENDENCIES="
./config/magpie
./components/magpie
"
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ services:
USER_WORKSPACE_UID: ${USER_WORKSPACE_UID}
USER_WORKSPACE_GID: ${USER_WORKSPACE_GID}
volumes:
- ./config/jupyterhub/jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py:ro
- ./config/jupyterhub/custom_templates:/custom_templates:ro
- ./components/jupyterhub/jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py:ro
- ./components/jupyterhub/custom_templates:/custom_templates:ro
- ${JUPYTERHUB_USER_DATA_DIR}:${JUPYTERHUB_USER_DATA_DIR}
- jupyterhub_data_persistence:/persist:rw
- /var/run/docker.sock:/var/run/docker.sock:rw
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
proxy:
volumes:
- ./components/magpie/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/magpie_canarie_api_monitoring.py:ro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
proxy:
volumes:
- ./components/magpie/config/proxy/conf.extra-service.d:/etc/nginx/conf.extra-service.d/magpie:ro
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ services:
MAGPIE_PORT: 2001
FORWARDED_ALLOW_IPS: "*"
env_file:
- ./config/magpie/postgres-credentials.env
- ./components/magpie/postgres-credentials.env
depends_on:
- postgres-magpie
links:
- postgres-magpie
volumes:
- ./config/magpie/postgres-credentials.env:/opt/local/src/magpie/env/postgres.env
- ./config/magpie/providers.cfg:${MAGPIE_PROVIDERS_CONFIG_PATH}/providers.cfg
- ./config/magpie/permissions.cfg:${MAGPIE_PERMISSIONS_CONFIG_PATH}/permissions.cfg
- ./config/magpie/magpie.ini:/opt/local/src/magpie/config/magpie.ini
- ./components/magpie/postgres-credentials.env:/opt/local/src/magpie/env/postgres.env
- ./components/magpie/providers.cfg:${MAGPIE_PROVIDERS_CONFIG_PATH}/providers.cfg
- ./components/magpie/permissions.cfg:${MAGPIE_PERMISSIONS_CONFIG_PATH}/permissions.cfg
- ./components/magpie/magpie.ini:/opt/local/src/magpie/config/magpie.ini
restart: always
logging: *default-logging

Expand All @@ -41,11 +41,11 @@ services:
container_name: postgres-magpie
# ports: # should not be exposed directly, enable 'optional-components/database-external-ports' as needed
env_file:
- ./config/magpie/postgres-credentials.env
- ./components/magpie/postgres-credentials.env
environment:
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ${MAGPIE_PERSIST_DIR}:/var/lib/postgresql/data/pgdata
- ./config/magpie/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- ./components/magpie/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
restart: always
logging: *default-logging
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
proxy:
volumes:
- ./components/portainer/config/proxy/conf.extra-service.d:/etc/nginx/conf.extra-service.d/portainer:ro
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ services:
# ports: # should not be exposed directly, enable 'optional-components/database-external-ports' as needed
volumes:
- ${POSTGRES_DATA_DIR}:/var/lib/postgresql/data/pgdata
- ./config/postgres/postgres-setup.sh:/postgres-setup.sh
- ./components/postgres/postgres-setup.sh:/postgres-setup.sh
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_DATABASES_TO_CREATE: ${POSTGRES_DATABASES_TO_CREATE}
env_file:
- ./config/postgres/credentials.env
- ./components/postgres/credentials.env
restart: always
logging: *default-logging
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ export PROXY_READ_TIMEOUT_VALUE="240s"

# Content of "location /" in file config/proxy/conf.d/all-services.include.template
# Useful to have a custom homepage.
export PROXY_ROOT_LOCATION="return 302 https://\$host/jupyter/hub/login;"
# If the jupyterhub component is enabled, this default will be overridden and the location will become the jupyterhub
# login page instead (see components/jupyterhub/default.env).
# If jupyterhub is not enabled, we recommend overriding this with a custom homepage since the magpie landing page isn't
# the most user-friendly location.
export PROXY_ROOT_LOCATION="return 302 https://\$host/magpie;"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I saw that the same variable is set by default when enabling jupyterhub.
Should we have a better strategy to define the desired root location redirect?
It seems that which one will be applied depends on a combination of dependency resolution order + file-system listing order. I'm not sure if this is replicable, unless one explicitly overrides the variable in their env.local.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It seems that which one will be applied depends on a combination of dependency resolution order + file-system listing order

If jupyterhub is enabled it will always override the magpie settings in default.env since magpie is enabled in DEFAULT_CONF_DIRS which will always be read before EXTRA_CONF_DIRS (where jupyterhub is enabled). Because jupyterhub's default.env will be read second, it will override the variable set in magpie's default.env

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok. Makes sense. I would add a comment that explicit this assumption, and indicate that this is only as last resort default if nothing else was enabled. Realistically, Magpie should probably not be the entrypoint, but we need "something" to fill the variable.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Add this comment about magpie as landing page is not the most user-friendly location to the var PROXY_ROOT_LOCATION in env.local.example as well.


export INCLUDE_FOR_PORT_80='$([ x"$ALLOW_UNSECURE_HTTP" = x"True" ] && echo "include /etc/nginx/conf.d/all-services.include;" || echo "include /etc/nginx/conf.d/redirect-to-https.include;")'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ services:
- "80:80"
- "443:${PROXY_SECURE_PORT}"
volumes:
- ./config/proxy/conf.d:/etc/nginx/conf.d
- ./config/proxy/nginx.conf:/etc/nginx/nginx.conf
- ./components/proxy/conf.d:/etc/nginx/conf.d
- ./components/proxy/nginx.conf:/etc/nginx/nginx.conf
- ${SSL_CERTIFICATE}:/etc/nginx/cert.pem
- ./config/proxy/static:/static
- ./components/proxy/static:/static
environment:
# https://github.com/bird-house/birdhouse-deploy/issues/198
REQUESTS_CA_BUNDLE: /etc/ssl/certs/ca-certificates.crt
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
proxy:
volumes:
- ./components/raven/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/raven_canarie_api_monitoring.py:ro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
magpie:
volumes:
- ./components/raven/config/magpie/providers.cfg:${MAGPIE_PROVIDERS_CONFIG_PATH}/raven-providers.cfg:ro
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export WEAVER_WPS_PROVIDERS="

# add any component that this component requires to run
COMPONENT_DEPENDENCIES="
./config/postgres
./config/wps_outputs-volume
./components/postgres
./components/wps_outputs-volume
"

OPTIONAL_VARS="
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
PYWPS_CFG: /wps.cfg
GEO_URL: "${RAVEN_GEO_URL}"
volumes:
- ./config/raven/wps.cfg:/wps.cfg
- ./components/raven/wps.cfg:/wps.cfg
- /tmp
restart: always
logging: *default-logging
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
proxy:
volumes:
- ./components/thredds/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/thredds_canarie_api_monitoring.py:ro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
magpie:
volumes:
- ./components/thredds/config/magpie/providers.cfg:${MAGPIE_PROVIDERS_CONFIG_PATH}/thredds-providers.cfg:ro
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: "3.4"
services:
proxy:
volumes:
- ./components/thredds/config/proxy/conf.extra-service.d:/etc/nginx/conf.extra-service.d/thredds:ro
links:
- thredds
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
image: ${THREDDS_IMAGE}
container_name: thredds
env_file:
- ./config/thredds/thredds.env
- ./components/thredds/thredds.env
environment:
# for reconstructing proper URL back to user when Thredds behind proxy
# because Twitcher eats the "Host" http header set by Nginx
Expand All @@ -22,10 +22,10 @@ services:
- ${DATA_PERSIST_ROOT}/datasets:/pavics-data
- ${DATA_PERSIST_ROOT}/ncml:/pavics-ncml
- wps_outputs:/pavics-data/wps_outputs
- ./config/thredds/catalog.xml:/usr/local/tomcat/content/thredds/catalog.xml:ro
- ./config/thredds/threddsConfig.xml:/usr/local/tomcat/content/thredds/threddsConfig.xml:ro
- ./config/thredds/wmsConfig.xml:/usr/local/tomcat/content/thredds/wmsConfig.xml:ro
- ./config/thredds/entrypointwrapper:/entrypointwrapper:ro
- ./components/thredds/catalog.xml:/usr/local/tomcat/content/thredds/catalog.xml:ro
- ./components/thredds/threddsConfig.xml:/usr/local/tomcat/content/thredds/threddsConfig.xml:ro
- ./components/thredds/wmsConfig.xml:/usr/local/tomcat/content/thredds/wmsConfig.xml:ro
- ./components/thredds/entrypointwrapper:/entrypointwrapper:ro
entrypoint: /entrypointwrapper
restart: always
logging: *default-logging
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
proxy:
volumes:
- ./components/twitcher/config/canarie-api/canarie_api_monitoring.py:${CANARIE_MONITORING_EXTRA_CONF_DIR}/twitcher_canarie_api_monitoring.py:ro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.4"
services:
proxy:
volumes:
- ./components/twitcher/config/proxy/conf.extra-service.d:/etc/nginx/conf.extra-service.d/twitcher:ro
Loading
Loading