Mercurial > dive4elements > river
annotate 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 |
rev | line source |
---|---|
9739 | 1 # Docker file for D4E River documentation wiki |
2 FROM centos:7 | |
3 MAINTAINER tom@intevation.de | |
4 | |
5 # Necessary to run further yum-installs inside Docker container, | |
6 # if not already part of the base image: | |
7 RUN yum -q -y install yum-plugin-ovl && rpm --rebuilddb | |
8 | |
9 # Install prerequisites | |
9803
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
9739
diff
changeset
|
10 RUN yum -q -y install curl ca-certificates tar gzip \ |
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
9739
diff
changeset
|
11 python-setuptools gcc python-devel xmlsec1-nss-devel libtool-ltdl-devel |
9739 | 12 WORKDIR /opt/xmlsec |
13 RUN curl -sL https://pypi.python.org/packages/source/p/pyxmlsec-next/pyxmlsec-next-0.3.1.tar.gz | \ | |
14 tar -xz | |
15 WORKDIR pyxmlsec-next-0.3.1 | |
16 RUN echo 3 | python setup.py build install | |
17 | |
18 WORKDIR /opt/wiki | |
19 | |
20 # User for wiki installation and WSGI | |
21 RUN useradd wiki | |
22 RUN chown wiki:wiki . | |
23 USER wiki | |
24 | |
25 # Install MoinMoin | |
26 RUN curl -s https://static.moinmo.in/files/moin-1.9.9.tar.gz | tar -xz | |
27 ENV WIKI /opt/wiki/moin-1.9.9 | |
28 | |
29 # Install tool for SSO | |
30 RUN curl -s https://hg.intevation.de/moin/moin-was/archive/default.tar.gz | \ | |
31 tar -xz -C $WIKI/MoinMoin/auth --strip-components=1 moin-was-default/was.py | |
32 | |
33 # Volume for Wiki data | |
34 VOLUME $WIKI/wiki/data | |
35 | |
9803
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
9739
diff
changeset
|
36 ENV PYTHONPATH $WIKI |
9739 | 37 |
9803
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
9739
diff
changeset
|
38 CMD ["/opt/wiki/moin-1.9.9/wiki/server/moin", "server", "standalone", \ |
a440ebd5c23b
Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents:
9739
diff
changeset
|
39 "--hostname="] |