[PATCH] Allow changing CGI scripts without re-building

Wald Commits scm-commit at wald.intevation.org
Thu Sep 22 16:53:53 CEST 2022


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1663857452 -7200
#      Thu Sep 22 16:37:32 2022 +0200
# Branch 3.2.x
# Node ID 68c6fe74a276894679255d218cbe1a9486b8ab67
# Parent  edaae6f76fc7a1105936b259e19bb1f5d5b7da2a
Allow changing CGI scripts without re-building

This is more in line with the fact, that the mapfile path is also
configurable in artifact server.

diff -r edaae6f76fc7 -r 68c6fe74a276 docker/Dockerfile.mapserv
--- a/docker/Dockerfile.mapserv	Mon Sep 12 16:13:54 2022 +0200
+++ b/docker/Dockerfile.mapserv	Thu Sep 22 16:37:32 2022 +0200
@@ -42,8 +42,7 @@
 VOLUME /opt/d4e/bin
 
 # CGI scripts
-ADD river-wms /var/www/cgi-bin/
-ADD user-wms /var/www/cgi-bin/
+ADD mapserver/cgi-bin /var/www/cgi-bin
 
 # httpd config
 ADD httpd-mapserver.conf /etc/httpd/conf.d/
diff -r edaae6f76fc7 -r 68c6fe74a276 docker/docker-compose.yml
--- a/docker/docker-compose.yml	Mon Sep 12 16:13:54 2022 +0200
+++ b/docker/docker-compose.yml	Thu Sep 22 16:37:32 2022 +0200
@@ -33,6 +33,7 @@
       - db
       - server
     volumes:
+      - ./mapserver/cgi-bin:/var/www/cgi-bin
       - mapfiles:/opt/d4e/bin
     ports:
       - 8081:80
diff -r edaae6f76fc7 -r 68c6fe74a276 docker/mapserver/cgi-bin/river-wms
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/mapserver/cgi-bin/river-wms	Thu Sep 22 16:37:32 2022 +0200
@@ -0,0 +1,5 @@
+#!/bin/sh
+export LC_ALL="de_DE.UTF-8"
+export NLS_LANG=".AL32UTF8"
+export MS_MAPFILE=/opt/d4e/bin/rivers.map
+/opt/mapserver/mapserv
diff -r edaae6f76fc7 -r 68c6fe74a276 docker/mapserver/cgi-bin/user-wms
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/mapserver/cgi-bin/user-wms	Thu Sep 22 16:37:32 2022 +0200
@@ -0,0 +1,5 @@
+#!/bin/sh
+export LC_ALL="de_DE.UTF-8"
+export NLS_LANG=".AL32UTF8"
+export MS_MAPFILE=/opt/d4e/bin/flys.map
+/opt/mapserver/mapserv
diff -r edaae6f76fc7 -r 68c6fe74a276 docker/river-wms
--- a/docker/river-wms	Mon Sep 12 16:13:54 2022 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-#!/bin/sh
-export LC_ALL="de_DE.UTF-8"
-export NLS_LANG=".AL32UTF8"
-export MS_MAPFILE=/opt/d4e/bin/rivers.map
-/opt/mapserver/mapserv
diff -r edaae6f76fc7 -r 68c6fe74a276 docker/user-wms
--- a/docker/user-wms	Mon Sep 12 16:13:54 2022 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-#!/bin/sh
-export LC_ALL="de_DE.UTF-8"
-export NLS_LANG=".AL32UTF8"
-export MS_MAPFILE=/opt/d4e/bin/flys.map
-/opt/mapserver/mapserv


More information about the Dive4Elements-commits mailing list