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
|
|
10 RUN yum -q -y install curl ca-certificates \
|
|
11 python-setuptools gcc python-devel xmlsec1-nss-devel libtool-ltdl-devel \
|
|
12 httpd mod_wsgi
|
|
13 WORKDIR /opt/xmlsec
|
|
14 RUN curl -sL https://pypi.python.org/packages/source/p/pyxmlsec-next/pyxmlsec-next-0.3.1.tar.gz | \
|
|
15 tar -xz
|
|
16 WORKDIR pyxmlsec-next-0.3.1
|
|
17 RUN echo 3 | python setup.py build install
|
|
18
|
|
19 WORKDIR /opt/wiki
|
|
20
|
|
21 # User for wiki installation and WSGI
|
|
22 RUN useradd wiki
|
|
23 RUN chown wiki:wiki .
|
|
24 USER wiki
|
|
25
|
|
26 # Install MoinMoin
|
|
27 RUN curl -s https://static.moinmo.in/files/moin-1.9.9.tar.gz | tar -xz
|
|
28 ENV WIKI /opt/wiki/moin-1.9.9
|
|
29
|
|
30 # Install tool for SSO
|
|
31 RUN curl -s https://hg.intevation.de/moin/moin-was/archive/default.tar.gz | \
|
|
32 tar -xz -C $WIKI/MoinMoin/auth --strip-components=1 moin-was-default/was.py
|
|
33
|
|
34 # Volume for Wiki data
|
|
35 VOLUME $WIKI/wiki/data
|
|
36
|
|
37 USER root
|
|
38
|
|
39 # httpd config
|
|
40 ADD httpd-wiki.conf /etc/httpd/conf.d/
|
|
41
|
|
42 EXPOSE 80
|
|
43 CMD ["/usr/sbin/httpd", "-DFOREGROUND"]
|