EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit de387f01 authored by Mussab Abdalla's avatar Mussab Abdalla
Browse files

adding reports configurations to `dem` and `emg`

parent cd4ffb85
No related branches found
No related tags found
No related merge requests found
......@@ -257,7 +257,7 @@ def registrar(
timestamp = product.inserted.strftime("%Y%m%dT%H%M%S")
if reporting_dir is not None:
with open(os.path.join(reporting_dir, 'item_%s_%s.xml' % (timestamp, product.identifier))) as f:
with open(os.path.join(reporting_dir, 'item_%s_%s.xml' % (timestamp, product.identifier)),'w') as f:
f.write(textwrap.dedent("""
<?xml version="1.0" encoding="UTF-8"?>
<DataAccessItem
......
......@@ -124,6 +124,9 @@ services:
- type: volume
source: instance-data
target: /var/www/pvs
- type: volume
source: report-data
target: /mnt/reports/
env_file:
- env/dem.env
- env/dem_db.env
......@@ -138,6 +141,7 @@ services:
INIT_SCRIPTS: "/configure.sh /init-db.sh /initialized.sh"
STARTUP_SCRIPTS: "/wait-initialized.sh"
WAIT_SERVICES: "redis:6379 database:5432"
REPORTING_DIR: '/mnt/reports/'
configs:
- source: init-db
target: /init-db.sh
......@@ -167,5 +171,6 @@ volumes:
redis-data:
cache-db:
instance-data:
report-data:
networks:
intnet:
......@@ -124,6 +124,9 @@ services:
- type: volume
source: instance-data
target: /var/www/pvs
- type: volume
source: report-data
target: /mnt/reports/
env_file:
- env/emg.env
- env/emg_db.env
......@@ -138,6 +141,7 @@ services:
INIT_SCRIPTS: "/configure.sh /init-db.sh /initialized.sh"
STARTUP_SCRIPTS: "/wait-initialized.sh"
WAIT_SERVICES: "redis:6379 database:5432"
REPORTING_DIR: '/mnt/reports/'
configs:
- source: init-db
target: /init-db.sh
......@@ -167,5 +171,6 @@ volumes:
redis-data:
cache-db:
instance-data:
report-data:
networks:
intnet:
......@@ -3,3 +3,4 @@ UPLOAD_CONTAINER=dem-data
GDAL_DISABLE_READDIR_ON_OPEN=TRUE
CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.TIF,.tif,.xml
SERVICE_URL=dem.pass.copernicus.eu
......@@ -3,3 +3,4 @@ UPLOAD_CONTAINER=emg-data
GDAL_DISABLE_READDIR_ON_OPEN=TRUE
CPL_VSIL_CURL_ALLOWED_EXTENSIONS=.TIF,.tif,.xml
SERVICE_URL=emg.pass.copernicus.eu
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment