remove fork dependency

master
Paul Walko 2019-05-11 15:24:51 -04:00
commit 3d86e490c6
No known key found for this signature in database
GPG Key ID: C123D8B2B64B2169
3 changed files with 107 additions and 0 deletions

88
Dockerfile Normal file
View File

@ -0,0 +1,88 @@
FROM php:7.2-apache
WORKDIR /var/www/html/w
# System Dependencies.
RUN apt-get update && apt-get install -y \
git \
imagemagick \
libicu-dev \
# Required for SyntaxHighlighting
python3 \
# Extensions
unzip \
--no-install-recommends && rm -r /var/lib/apt/lists/*
# Install the PHP extensions we need
RUN docker-php-ext-install mbstring mysqli opcache intl
# Install the default object cache.
RUN pecl channel-update pecl.php.net \
&& pecl install apcu \
&& docker-php-ext-enable apcu
# PHP.ini settings
## see https://secure.php.net/manual/en/opcache.installation.php
RUN { \
echo 'opcache.memory_consumption=128'; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=4000'; \
echo 'opcache.revalidate_freq=60'; \
echo 'opcache.fast_shutdown=1'; \
echo 'opcache.enable_cli=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini
## enable file uploads
RUN echo 'file_uploads = On' > /usr/local/etc/php/conf.d/docker-php-uploads.ini
# SQLite Directory Setup
RUN mkdir -p /var/www/data \
&& chown -R www-data:www-data /var/www/data
# Version
ENV MEDIAWIKI_MAJOR_VERSION 1.31
ENV MEDIAWIKI_BRANCH REL1_31
ENV MEDIAWIKI_VERSION 1.31.1
ENV MEDIAWIKI_SHA512 ee49649cc37d0a7d45a7c6d90c822c2a595df290be2b5bf085affbec3318768700a458a6e5b5b7e437651400b9641424429d6d304f870c22ec63fae86ffc5152
# MediaWiki setup
RUN curl -fSL "https://releases.wikimedia.org/mediawiki/${MEDIAWIKI_MAJOR_VERSION}/mediawiki-${MEDIAWIKI_VERSION}.tar.gz" -o mediawiki.tar.gz \
&& echo "${MEDIAWIKI_SHA512} *mediawiki.tar.gz" | sha512sum -c - \
&& tar -xz --strip-components=1 -f mediawiki.tar.gz \
&& rm mediawiki.tar.gz \
&& curl https://getcomposer.org/composer.phar -o composer.phar
# Manually install extensions & skins
RUN curl -fSL 'https://extdist.wmflabs.org/dist/extensions/AbuseFilter-REL1_31-610f375.tar.gz' | tar -xz -C ./extensions \
&& curl -fSL 'https://extdist.wmflabs.org/dist/extensions/AntiSpoof-REL1_31-48ed1f8.tar.gz' | tar -xz -C ./extensions \
&& curl -fSL 'https://extdist.wmflabs.org/dist/extensions/GeoData-REL1_31-96cda6b.tar.gz' | tar -xz -C ./extensions \
&& curl -fSL 'https://extdist.wmflabs.org/dist/extensions/MobileFrontend-REL1_31-7f66849.tar.gz' | tar -xz -C ./extensions \
&& curl -fSL 'https://extdist.wmflabs.org/dist/extensions/OpenIDConnect-REL1_31-baea47f.tar.gz' | tar -xz -C ./extensions \
&& curl -fSL 'https://extdist.wmflabs.org/dist/extensions/PluggableAuth-REL1_31-300ac44.tar.gz' | tar -xz -C ./extensions \
&& curl -fSL 'https://extdist.wmflabs.org/dist/extensions/Scribunto-REL1_31-106fbf4.tar.gz' | tar -xz -C ./extensions \
&& curl -fSL 'https://extdist.wmflabs.org/dist/extensions/UserMerge-REL1_31-a641f0c.tar.gz' | tar -xz -C ./extensions \
# Skins
&& curl -fSL 'https://extdist.wmflabs.org/dist/skins/MinervaNeue-REL1_31-2e70e79.tar.gz' | tar -xz -C ./skins
# Built-in Extensions
RUN { \
echo '{'; \
echo ' "require": {'; \
echo ' "mediawiki/maps": "^7"'; \
echo ' },'; \
echo ' "extra": {'; \
echo ' "merge-plugin": {'; \
echo ' "include": ['; \
echo ' "extensions/OpenIDConnect/composer.json"'; \
echo ' ]'; \
echo ' }'; \
echo ' }'; \
echo '}'; \
} > /var/www/html/w/composer.local.json
# Install built-in extensions + extension dependencies
RUN php composer.phar update --no-dev \
&& php composer.phar install -d ./extensions/AbuseFilter
# Permissions
RUN chown -R www-data:www-data cache extensions images skins

16
LICENSE Normal file
View File

@ -0,0 +1,16 @@
Original work by Synctree, Inc. and available at:
https://github.com/synctree/docker-mediawiki
Copyright 2015 Benjamin Hutchins
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# About this Repo
Forked from https://github.com/wikimedia/mediawiki-docker but with more plugins.