Skip to content

Commit

Permalink
Upgrade to GeoMapFish 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jan 14, 2020
1 parent 2c4cdcc commit f44fdf7
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CONST_create_template/docker-compose-lib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ services:
- CPL_VSIL_CURL_USE_HEAD
- GDAL_DISABLE_READDIR_ON_OPEN
- QGIS_SERVER_LOG_LEVEL=2
- LOG_LEVEL=INFO
- C2CGEOPORTAL_LOG_LEVEL=INFO
- SQL_LOG_LEVEL=WARN
- OTHER_LOG_LEVEL=WARN

tinyows:
image: camptocamp/tinyows
Expand Down
12 changes: 7 additions & 5 deletions CONST_create_template/docker-compose.override.sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
# For Python project development.
- ${PWD}/geoportal/geomapfish_geoportal:/app/geomapfish_geoportal
# For Python c2cgeportal development.
# - '${PWD}/../c2cgeoportal/commons/c2cgeoportal_gcommons:/opt/c2cgeoportal/commons/c2cgeoportal_commons'
# - '${PWD}/../c2cgeoportal/commons/c2cgeoportal_commons:/opt/c2cgeoportal/commons/c2cgeoportal_commons'
# - '${PWD}/../c2cgeoportal/geoportal/c2cgeoportal_geoportal:/opt/c2cgeoportal/geoportal/c2cgeoportal_geoportal'
# - '${PWD}/../c2cgeoportal/admin/c2cgeoportal_admin:/opt/c2cgeoportal/admin/c2cgeoportal_admin'
environment:
Expand All @@ -31,10 +31,12 @@ services:
# volumes_from:
# - config:ro

# qgisserver:
# environment:
# env:
# - QGIS_SERVER_LOG_LEVEL=0
qgisserver:
# volumes:
# - '${PWD}/../c2cgeoportal/docker/qgisserver/geomapfish_qgisserver/:/var/www/plugins/geomapfish_qgisserver/'
# - '${PWD}/../c2cgeoportal/commons/c2cgeoportal_commons:/opt/c2cgeoportal/commons/c2cgeoportal_commons/'
environment:
- QGIS_SERVER_LOG_LEVEL=0

# For Javascript project development.
# The debug application will be availavble at ``https://<host>/<entry_point>/dev/<interface>.html``.
Expand Down
7 changes: 7 additions & 0 deletions CONST_create_template/qgisserver/geomapfish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ vars:
schema: '{PGSCHEMA}'
schema_static: '{PGSCHEMA_STATIC}'
sqlalchemy.url: postgresql://{PGUSER}:{PGPASSWORD}@{PGHOST}:{PGPORT}/{PGDATABASE}
sqlalchemy_slave.url: postgresql://{PGUSER}:{PGPASSWORD}@{PGHOST_SLAVE}:{PGPORT}/{PGDATABASE}
srid: 2056
sqlalchemy:
pool_recycle: 30
pool_size: 5
max_overflow: 25
use_batch_mode: true
environment:
- PGUSER
- PGPASSWORD
- PGHOST
- PGHOST_SLAVE
- name: PGPORT
default: 5432
- PGDATABASE
Expand Down
4 changes: 4 additions & 0 deletions docker-compose-lib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ services:
- CPL_VSIL_CURL_USE_HEAD
- GDAL_DISABLE_READDIR_ON_OPEN
- QGIS_SERVER_LOG_LEVEL=2
- LOG_LEVEL=INFO
- C2CGEOPORTAL_LOG_LEVEL=INFO
- SQL_LOG_LEVEL=WARN
- OTHER_LOG_LEVEL=WARN

tinyows:
image: camptocamp/tinyows
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.override.sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
# For Python project development.
- ${PWD}/geoportal/geomapfish_geoportal:/app/geomapfish_geoportal
# For Python c2cgeportal development.
# - '${PWD}/../c2cgeoportal/commons/c2cgeoportal_gcommons:/opt/c2cgeoportal/commons/c2cgeoportal_commons'
# - '${PWD}/../c2cgeoportal/commons/c2cgeoportal_commons:/opt/c2cgeoportal/commons/c2cgeoportal_commons'
# - '${PWD}/../c2cgeoportal/geoportal/c2cgeoportal_geoportal:/opt/c2cgeoportal/geoportal/c2cgeoportal_geoportal'
# - '${PWD}/../c2cgeoportal/admin/c2cgeoportal_admin:/opt/c2cgeoportal/admin/c2cgeoportal_admin'
# - '${PWD}/../c2cwsgiutils/c2cwsgiutils:/opt/c2cwsgiutils/c2cwsgiutils'
Expand Down
20 changes: 18 additions & 2 deletions geoportal/CONST_config-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ mapping:
required: True
seq:
- type: map
mapping:
mapping: &route
level:
type: int
required: True
Expand All @@ -637,7 +637,23 @@ mapping:
type: str
pattern: |-
[a-zA-Z0-9_\-~\.]+
phantomjs: *routes
phantomjs:
type: map
required: True
mapping:
disable:
type: seq
required: True
seq:
- type: str
routes:
type: seq
required: True
seq:
- type: map
mapping:
<<: *route
environment: *free_dict
themes:
type: map
required: True
Expand Down
6 changes: 6 additions & 0 deletions geoportal/CONST_vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -593,16 +593,22 @@ vars:
- name: desktop
params:
no_redirect: "true"
environment: &phantomjs-env
HTTP_MAP:
https://localhost:8484/tiles/: http://localhost:8080/tiles/
level: 6
- name: mobile
params:
no_redirect: "true"
environment: *phantomjs-env
level: 6
- name: iframe_api
params:
no_redirect: "true"
environment: *phantomjs-env
level: 6
- name: apihelp
environment: *phantomjs-env
level: 6
routes:
disable: []
Expand Down
5 changes: 5 additions & 0 deletions qgisserver/geomapfish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ vars:
sqlalchemy.url: postgresql://{PGUSER}:{PGPASSWORD}@{PGHOST}:{PGPORT}/{PGDATABASE}
sqlalchemy_slave.url: postgresql://{PGUSER}:{PGPASSWORD}@{PGHOST_SLAVE}:{PGPORT}/{PGDATABASE}
srid: 2056
sqlalchemy:
pool_recycle: 30
pool_size: 5
max_overflow: 25
use_batch_mode: true
environment:
- PGUSER
- PGPASSWORD
Expand Down

0 comments on commit f44fdf7

Please sign in to comment.