mediawiki/Dockerfile

54 lines
1.8 KiB
Docker
Raw Normal View History

2014-06-20 01:44:35 -04:00
# Mediawiki-Apache
#
2014-12-05 09:02:02 -06:00
# Version 1.1
2014-06-20 01:44:35 -04:00
2014-06-18 16:18:40 -04:00
FROM tutum/apache-php:latest
2014-12-05 09:02:02 -06:00
MAINTAINER Adrian Malacoda <adrian.malacoda@monarch-pass.net>
2014-06-18 16:18:40 -04:00
2015-06-22 21:29:05 -05:00
ENV MW_VERSION REL1_25
2014-12-05 08:49:05 -06: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-12-05 08:49:05 -06:00
RUN cd /app && git checkout -b $MW_VERSION origin/$MW_VERSION
2014-06-18 17:22:54 -04:00
2014-11-24 21:59:58 -06:00
# Install extensions
ADD add_extension.sh /add_extension.sh
RUN chmod +x add_extension.sh
2014-12-05 08:49:05 -06:00
RUN ./add_extension.sh Renameuser $MW_VERSION && \
./add_extension.sh ImageMap $MW_VERSION && \
./add_extension.sh Cite $MW_VERSION && \
./add_extension.sh InputBox $MW_VERSION && \
./add_extension.sh LocalisationUpdate $MW_VERSION && \
./add_extension.sh Interwiki $MW_VERSION && \
./add_extension.sh TitleBlacklist $MW_VERSION && \
./add_extension.sh Gadgets $MW_VERSION && \
./add_extension.sh WikiEditor $MW_VERSION && \
./add_extension.sh SpamBlacklist $MW_VERSION && \
./add_extension.sh ParserFunctions $MW_VERSION && \
./add_extension.sh SyntaxHighlight_GeSHi $MW_VERSION && \
./add_extension.sh ConfirmEdit $MW_VERSION && \
./add_extension.sh Nuke $MW_VERSION && \
./add_extension.sh Poem $MW_VERSION && \
./add_extension.sh PdfHandler $MW_VERSION
2014-11-24 21:59:58 -06:00
2014-12-05 09:38:22 -06:00
# Install skins
ADD add_skin.sh /add_skin.sh
RUN chmod +x add_skin.sh
RUN ./add_skin.sh Vector $MW_VERSION && \
./add_skin.sh MonoBook $MW_VERSION
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