comparison 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
comparison
equal deleted inserted replaced
9802:a9641367812c 9803:a440ebd5c23b
5 # Necessary to run further yum-installs inside Docker container, 5 # Necessary to run further yum-installs inside Docker container,
6 # if not already part of the base image: 6 # if not already part of the base image:
7 RUN yum -q -y install yum-plugin-ovl && rpm --rebuilddb 7 RUN yum -q -y install yum-plugin-ovl && rpm --rebuilddb
8 8
9 # Install prerequisites 9 # Install prerequisites
10 RUN yum -q -y install curl ca-certificates \ 10 RUN yum -q -y install curl ca-certificates tar gzip \
11 python-setuptools gcc python-devel xmlsec1-nss-devel libtool-ltdl-devel \ 11 python-setuptools gcc python-devel xmlsec1-nss-devel libtool-ltdl-devel
12 httpd mod_wsgi
13 WORKDIR /opt/xmlsec 12 WORKDIR /opt/xmlsec
14 RUN curl -sL https://pypi.python.org/packages/source/p/pyxmlsec-next/pyxmlsec-next-0.3.1.tar.gz | \ 13 RUN curl -sL https://pypi.python.org/packages/source/p/pyxmlsec-next/pyxmlsec-next-0.3.1.tar.gz | \
15 tar -xz 14 tar -xz
16 WORKDIR pyxmlsec-next-0.3.1 15 WORKDIR pyxmlsec-next-0.3.1
17 RUN echo 3 | python setup.py build install 16 RUN echo 3 | python setup.py build install
32 tar -xz -C $WIKI/MoinMoin/auth --strip-components=1 moin-was-default/was.py 31 tar -xz -C $WIKI/MoinMoin/auth --strip-components=1 moin-was-default/was.py
33 32
34 # Volume for Wiki data 33 # Volume for Wiki data
35 VOLUME $WIKI/wiki/data 34 VOLUME $WIKI/wiki/data
36 35
37 USER root 36 ENV PYTHONPATH $WIKI
38 37
39 # httpd config 38 CMD ["/opt/wiki/moin-1.9.9/wiki/server/moin", "server", "standalone", \
40 ADD httpd-wiki.conf /etc/httpd/conf.d/ 39 "--hostname="]
41
42 EXPOSE 80
43 CMD ["/usr/sbin/httpd", "-DFOREGROUND"]

http://dive4elements.wald.intevation.org