File tree Expand file tree Collapse file tree 4 files changed +30
-7
lines changed Expand file tree Collapse file tree 4 files changed +30
-7
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,17 @@ DB_PORT=5432
6
6
DB_USERNAME=opendatacubeusername
7
7
DB_PASSWORD=opendatacubepassword
8
8
DB_DATABASE=opendatacube
9
- OWS_CFG_FILE=./ows_refactored/dev_af_ows_root_cfg.py
9
+ OWS_CFG_FILE=ows_refactored/ows_root_cfg.py
10
+ # OWS_CFG_FOLDER config enables mounting an external CFG folder
11
+ OWS_CFG_FOLDER=~/dea-config/dev/services/wms/ows_refactored
12
+ # OWS_CFG_CONTAINER_FOLDER defines the mount inside docker container
13
+ OWS_CFG_COUNTAINER_FOLDER=/env/config/ows_refactored
10
14
AWS_NO_SIGN_REQUEST=yes
11
15
AWS_S3_ENDPOINT=
12
16
# If you want to use pydev for interactive debugging
13
17
PYDEV_DEBUG=
14
18
# Will not work with pydev
15
19
FLASK_ENV=development
16
20
prometheus_multiproc_dir=/tmp
17
- PYTHONPATH=/code
18
- DATACUBE_OWS_CFG=ows_refactored.dev_af_ows_root_cfg .ows_cfg
21
+ PYTHONPATH=/env/config
22
+ DATACUBE_OWS_CFG=ows_refactored.ows_root_cfg .ows_cfg
Original file line number Diff line number Diff line change @@ -6,7 +6,11 @@ DB_PORT=5432
6
6
DB_USERNAME=opendatacubeusername
7
7
DB_PASSWORD=opendatacubepassword
8
8
DB_DATABASE=opendatacube
9
- OWS_CFG_FILE=./integration_tests/cfg/ows_test_cfg.py
9
+ OWS_CFG_FILE=config/ows_test_cfg.py
10
+ # OWS_CFG_FOLDER config enables mounting an external CFG folder
11
+ OWS_CFG_FOLDER=./integration_tests/cfg
12
+ # OWS_CFG_CONTAINER_FOLDER defines the mount inside docker container
13
+ OWS_CFG_CONTAINER_FOLDER=/env/config
10
14
AWS_NO_SIGN_REQUEST=yes
11
15
AWS_S3_ENDPOINT=
12
16
# If you want to use pydev for interactive debugging
@@ -15,4 +19,4 @@ PYDEV_DEBUG=
15
19
FLASK_ENV=development
16
20
prometheus_multiproc_dir=/tmp
17
21
PYTHONPATH=/env
18
- DATACUBE_OWS_CFG=config.ows_cfg .ows_cfg
22
+ DATACUBE_OWS_CFG=config.ows_test_cfg .ows_cfg
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ services:
24
24
DB_PASSWORD : ${DB_PASSWORD}
25
25
DB_DATABASE : ${DB_DATABASE}
26
26
# Where the config file is (must match the volume mount)
27
- WMS_CONFIG_PATH : /env/config/ows_cfg.py
27
+ WMS_CONFIG_PATH : /env/config/${OWS_CFG_FILE}
28
28
# Path from the PYTHONPATH to the config object (default PYTHONPATH is /env)
29
29
PYTHONPATH : ${PYTHONPATH}
30
30
DATACUBE_OWS_CFG : ${DATACUBE_OWS_CFG}
@@ -40,7 +40,7 @@ services:
40
40
ports :
41
41
- " 8000:8000"
42
42
volumes :
43
- - ${OWS_CFG_FILE}:/env/config/ows_cfg.py
43
+ - ${OWS_CFG_FOLDER}:${OWS_CFG_CONTAINER_FOLDER}
44
44
- ./docker/ows/wait-for-db:/usr/local/bin/wait-for-db
45
45
- ./:/code/
46
46
- ./artifacts:/mnt/artifacts
Original file line number Diff line number Diff line change @@ -107,3 +107,18 @@ Docker and Docker-compose
107
107
The provided ``Dockerfile `` and ``docker-compose.yaml `` read additional
108
108
environment variables at build time. Please refer to the `README <https://datacube-ows.readthedocs.io/en/latest/readme.html >`_
109
109
for further details.
110
+
111
+ environment variables exclusive for docker-compose
112
+ --------------------------------------------------
113
+ OWS_CFG_FILE:
114
+ for multiple files ows config structure, the root level ows config file path inside docker container
115
+ for single file ows config structure, the ows config file path inside docker container
116
+
117
+ OWS_CFG_FOLDER:
118
+ path to a folder containing ows config files anywhere on the local machine
119
+
120
+ OWS_CFG_COUNTAINER_FOLDER:
121
+ path the OWS_CFG_FOLDER will mount to inside docker container
122
+
123
+ PYTHONPATH:
124
+ PYTHONPATH to ows config file
You can’t perform that action at this time.
0 commit comments