# Mediawiki-Apache # # Version 1.2 FROM tutum/apache-php:latest MAINTAINER Adrian Malacoda # Install ImageMagick RUN apt-get -y update && apt-get -y install imagemagick ARG MW_VERSION=REL1_29 WORKDIR / # Update composer RUN composer self-update # 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 RUN cd /app && git checkout -b $MW_VERSION origin/$MW_VERSION && git submodule update --init # Install extensions ADD add_extension.sh /add_extension.sh RUN chmod +x add_extension.sh 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 # 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 # Create the section for persistent files RUN mkdir /var/lib/mediawiki RUN ln -s /var/lib/mediawiki/LocalSettings.php /app/LocalSettings.php ADD setup.sh /setup.sh RUN chmod +x setup.sh ADD 000-default.conf /etc/apache2/sites-available/000-default.conf # Install composer dependencies RUN cd /app && composer install --no-dev EXPOSE 80 CMD ./setup.sh && ./run.sh