Mercurial > dive4elements > river
diff docker/Dockerfile.wiki @ 9739:414647dc6936 3.2.x
Add wiki to Docker setup
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 26 Jul 2022 16:56:38 +0200 |
parents | |
children | a440ebd5c23b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docker/Dockerfile.wiki Tue Jul 26 16:56:38 2022 +0200 @@ -0,0 +1,43 @@ +# Docker file for D4E River documentation wiki +FROM centos:7 +MAINTAINER tom@intevation.de + +# Necessary to run further yum-installs inside Docker container, +# if not already part of the base image: +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 +WORKDIR /opt/xmlsec +RUN curl -sL https://pypi.python.org/packages/source/p/pyxmlsec-next/pyxmlsec-next-0.3.1.tar.gz | \ + tar -xz +WORKDIR pyxmlsec-next-0.3.1 +RUN echo 3 | python setup.py build install + +WORKDIR /opt/wiki + +# User for wiki installation and WSGI +RUN useradd wiki +RUN chown wiki:wiki . +USER wiki + +# Install MoinMoin +RUN curl -s https://static.moinmo.in/files/moin-1.9.9.tar.gz | tar -xz +ENV WIKI /opt/wiki/moin-1.9.9 + +# Install tool for SSO +RUN curl -s https://hg.intevation.de/moin/moin-was/archive/default.tar.gz | \ + tar -xz -C $WIKI/MoinMoin/auth --strip-components=1 moin-was-default/was.py + +# Volume for Wiki data +VOLUME $WIKI/wiki/data + +USER root + +# httpd config +ADD httpd-wiki.conf /etc/httpd/conf.d/ + +EXPOSE 80 +CMD ["/usr/sbin/httpd", "-DFOREGROUND"]