mediawiki/Dockerfile

46 lines
1.4 KiB
Docker
Raw Normal View History

2014-06-20 01:44:35 -04:00
# Mediawiki-Apache
#
# Version 1.0
2014-06-18 16:18:40 -04:00
FROM tutum/apache-php:latest
2014-06-20 01:44:35 -04:00
MAINTAINER John E Arnold <iohannes.eduardus.arnold@gmail.com>
2014-06-18 16:18:40 -04:00
WORKDIR /
2014-06-20 01:44:35 -04:00
# Remove the old hello world app and grab Mediawiki source
RUN apt-get update && apt-get install -yq git && rm -rf /var/lib/apt/lists/*
RUN rm -fr /app && mv /var/www/html /var/www/w && git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git /app
2014-06-18 17:22:54 -04:00
RUN cd /app && git checkout -b REL1_23 origin/REL1_23
2014-11-24 21:59:58 -06:00
# Install extensions
ADD add_extension.sh /add_extension.sh
RUN chmod +x add_extension.sh
RUN ./add_extension.sh Renameuser && \
./add_extension.sh ImageMap && \
./add_extension.sh Cite && \
./add_extension.sh InputBox && \
./add_extension.sh LocalisationUpdate && \
./add_extension.sh Interwiki && \
./add_extension.sh TitleBlacklist && \
./add_extension.sh Gadgets && \
./add_extension.sh WikiEditor && \
./add_extension.sh SpamBlacklist && \
./add_extension.sh ParserFunctions && \
./add_extension.sh SyntaxHighlight_GeSHi && \
./add_extension.sh ConfirmEdit && \
./add_extension.sh Nuke && \
./add_extension.sh Poem && \
./add_extension.sh PdfHandler
2014-06-20 01:44:35 -04:00
# Create the section for persistent files
RUN mkdir /var/lib/mediawiki
RUN ln -s /var/lib/mediawiki/LocalSettings.php /app/LocalSettings.php
2014-06-18 17:22:54 -04:00
ADD setup.sh /setup.sh
RUN chmod +x setup.sh
2014-06-18 16:18:40 -04:00
ADD 000-default.conf /etc/apache2/sites-available/000-default.conf
2014-06-18 16:18:40 -04:00
EXPOSE 80
CMD ./setup.sh && ./run.sh