diff docker/Dockerfile.wiki @ 9803:a440ebd5c23b 3.2.x tip

Avoid using outdated mod_wsgi in Docker setup Run Wiki in standalone mode behind reverse proxy, which is provided by a more up-to-date Apache web server. The wiki container is still based on CentOS 7, because the included SSO integration component cannot be build with more recent libraries.
author Tom Gottfried <tom@intevation.de>
date Wed, 21 Aug 2024 16:54:17 +0200
parents 414647dc6936
children
line wrap: on
line diff
--- a/docker/Dockerfile.wiki	Wed May 29 10:51:00 2024 +0200
+++ b/docker/Dockerfile.wiki	Wed Aug 21 16:54:17 2024 +0200
@@ -7,9 +7,8 @@
 RUN yum -q -y install yum-plugin-ovl && rpm --rebuilddb
 
 # Install prerequisites
-RUN yum -q -y install curl ca-certificates \
-        python-setuptools gcc python-devel xmlsec1-nss-devel libtool-ltdl-devel \
-        httpd mod_wsgi
+RUN yum -q -y install curl ca-certificates tar gzip \
+        python-setuptools gcc python-devel xmlsec1-nss-devel libtool-ltdl-devel
 WORKDIR /opt/xmlsec
 RUN curl -sL https://pypi.python.org/packages/source/p/pyxmlsec-next/pyxmlsec-next-0.3.1.tar.gz | \
     tar -xz
@@ -34,10 +33,7 @@
 # Volume for Wiki data
 VOLUME $WIKI/wiki/data
 
-USER root
+ENV PYTHONPATH $WIKI
 
-# httpd config
-ADD httpd-wiki.conf /etc/httpd/conf.d/
-
-EXPOSE 80
-CMD ["/usr/sbin/httpd", "-DFOREGROUND"]
+CMD ["/opt/wiki/moin-1.9.9/wiki/server/moin", "server", "standalone", \
+     "--hostname="]

http://dive4elements.wald.intevation.org