-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
87 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,10 @@ PREFIX:=lizmap-$(LZMBRANCH)-tests | |
LIZMAP_USER_ID ?= $(shell id -u) | ||
LIZMAP_GROUP_ID ?= $(shell id -g) | ||
LZMPOSTGISVERSION ?= 14-3 | ||
LZMQGSRVVERSION ?= 3.34 | ||
LZMQGSRVVERSION ?= qgis-ltr-eager | ||
LZMPGPORT ?= 8132 | ||
LZMQGSRVPORT ?= 8131 | ||
LZMQGSADMINPORT ?= 9876 | ||
LZMWEBPORT ?= 8130 | ||
LIZMAP_ADMIN_LOGIN ?= admin | ||
LIZMAP_ADMIN_EMAIL ?= [email protected] | ||
|
@@ -33,6 +34,7 @@ env: | |
LZMBRANCH=$(LZMBRANCH) | ||
LZMPGPORT=$(LZMPGPORT) | ||
LZMQGSRVPORT=$(LZMQGSRVPORT) | ||
LZMQGSADMINPORT=$(LZMQGSADMINPORT) | ||
LZMWEBPORT=$(LZMWEBPORT) | ||
LIZMAP_ADMIN_LOGIN=$(LIZMAP_ADMIN_LOGIN) | ||
LIZMAP_ADMIN_EMAIL=$(LIZMAP_ADMIN_EMAIL) | ||
|
@@ -44,32 +46,24 @@ env: | |
|
||
|
||
build-plugins: | ||
docker run \ | ||
-u $(LIZMAP_USER_ID):$(LIZMAP_GROUP_ID) \ | ||
--rm -i \ | ||
-e QGSRV_SERVER_PLUGINPATH=/srv/plugins \ | ||
-e QGIS_PLUGIN_MANAGER_SOURCES_FILE=/tmp/sources-plugin-manager.list \ | ||
-e QGIS_PLUGIN_MANAGER_CACHE_DIR=/tmp/cache-plugin-manager \ | ||
-v $(shell pwd)/qgis-server-plugins:/srv/plugins \ | ||
-v $(shell pwd)/:/src \ | ||
--entrypoint /src/add_server_plugins.sh \ | ||
3liz/qgis-map-server:${LZMQGSRVVERSION} \ | ||
echo "Plugins are auto installed at qgis worker startup" | ||
|
||
show-qgis-server-versions: | ||
docker run \ | ||
--rm -i \ | ||
--entrypoint qgisserver \ | ||
3liz/qgis-map-server:${LZMQGSRVVERSION} \ | ||
--version | ||
--entrypoint qgis-server-rpc \ | ||
3liz/qgis-services:${LZMQGSRVVERSION} \ | ||
version | ||
docker run \ | ||
-u $(LIZMAP_USER_ID):$(LIZMAP_GROUP_ID) \ | ||
--rm -i \ | ||
-e QGSRV_SERVER_PLUGINPATH=/srv/plugins \ | ||
-e QGIS_PLUGIN_MANAGER_SKIP_SOURCES_FILE=True \ | ||
-v $(shell pwd)/qgis-server-plugins:/srv/plugins \ | ||
-v $(shell pwd)/:/src \ | ||
--workdir /srv/plugins \ | ||
--entrypoint qgis-plugin-manager \ | ||
3liz/qgis-map-server:${LZMQGSRVVERSION} \ | ||
3liz/qgis-services:${LZMQGSRVVERSION} \ | ||
list | ||
|
||
upgrade-projects: | ||
|
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,38 @@ | ||
# | ||
# Worker backend configuration | ||
# | ||
|
||
[worker] | ||
name = "Qgis" | ||
max_projects = 20 | ||
|
||
[worker.projects] | ||
ignore_bad_layers = true | ||
|
||
[worker.projects.search_paths] | ||
'/' = "/srv/projects" | ||
|
||
|
||
# Plugins allowed to install from plugin paths | ||
[worker.plugins] | ||
install = [ | ||
"Lizmap server", | ||
"atlasprint", | ||
"wfsOutputExtension", | ||
] | ||
# Auto install plugins from embedded plugin manager | ||
install_mode = "auto" | ||
|
||
# | ||
# HTTP Front end configuration | ||
# | ||
|
||
[backends.root] | ||
title = "Root backend" | ||
address= "tcp://map-rpc" | ||
route = "/" | ||
|
||
[[backends.root.api]] | ||
endpoint = "lizmap" | ||
name = "Lizmap api" | ||
|
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