Skip to content

Commit 3d86e49

Browse files
committed
remove fork dependency
0 parents  commit 3d86e49

File tree

3 files changed

+107
-0
lines changed

3 files changed

+107
-0
lines changed

Dockerfile

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
FROM php:7.2-apache
2+
3+
WORKDIR /var/www/html/w
4+
5+
# System Dependencies.
6+
RUN apt-get update && apt-get install -y \
7+
git \
8+
imagemagick \
9+
libicu-dev \
10+
# Required for SyntaxHighlighting
11+
python3 \
12+
# Extensions
13+
unzip \
14+
--no-install-recommends && rm -r /var/lib/apt/lists/*
15+
16+
# Install the PHP extensions we need
17+
RUN docker-php-ext-install mbstring mysqli opcache intl
18+
19+
# Install the default object cache.
20+
RUN pecl channel-update pecl.php.net \
21+
&& pecl install apcu \
22+
&& docker-php-ext-enable apcu
23+
24+
# PHP.ini settings
25+
## see https://secure.php.net/manual/en/opcache.installation.php
26+
RUN { \
27+
echo 'opcache.memory_consumption=128'; \
28+
echo 'opcache.interned_strings_buffer=8'; \
29+
echo 'opcache.max_accelerated_files=4000'; \
30+
echo 'opcache.revalidate_freq=60'; \
31+
echo 'opcache.fast_shutdown=1'; \
32+
echo 'opcache.enable_cli=1'; \
33+
} > /usr/local/etc/php/conf.d/opcache-recommended.ini
34+
35+
## enable file uploads
36+
RUN echo 'file_uploads = On' > /usr/local/etc/php/conf.d/docker-php-uploads.ini
37+
38+
# SQLite Directory Setup
39+
RUN mkdir -p /var/www/data \
40+
&& chown -R www-data:www-data /var/www/data
41+
42+
# Version
43+
ENV MEDIAWIKI_MAJOR_VERSION 1.31
44+
ENV MEDIAWIKI_BRANCH REL1_31
45+
ENV MEDIAWIKI_VERSION 1.31.1
46+
ENV MEDIAWIKI_SHA512 ee49649cc37d0a7d45a7c6d90c822c2a595df290be2b5bf085affbec3318768700a458a6e5b5b7e437651400b9641424429d6d304f870c22ec63fae86ffc5152
47+
48+
# MediaWiki setup
49+
RUN curl -fSL "https://releases.wikimedia.org/mediawiki/${MEDIAWIKI_MAJOR_VERSION}/mediawiki-${MEDIAWIKI_VERSION}.tar.gz" -o mediawiki.tar.gz \
50+
&& echo "${MEDIAWIKI_SHA512} *mediawiki.tar.gz" | sha512sum -c - \
51+
&& tar -xz --strip-components=1 -f mediawiki.tar.gz \
52+
&& rm mediawiki.tar.gz \
53+
&& curl https://getcomposer.org/composer.phar -o composer.phar
54+
55+
# Manually install extensions & skins
56+
RUN curl -fSL 'https://extdist.wmflabs.org/dist/extensions/AbuseFilter-REL1_31-610f375.tar.gz' | tar -xz -C ./extensions \
57+
&& curl -fSL 'https://extdist.wmflabs.org/dist/extensions/AntiSpoof-REL1_31-48ed1f8.tar.gz' | tar -xz -C ./extensions \
58+
&& curl -fSL 'https://extdist.wmflabs.org/dist/extensions/GeoData-REL1_31-96cda6b.tar.gz' | tar -xz -C ./extensions \
59+
&& curl -fSL 'https://extdist.wmflabs.org/dist/extensions/MobileFrontend-REL1_31-7f66849.tar.gz' | tar -xz -C ./extensions \
60+
&& curl -fSL 'https://extdist.wmflabs.org/dist/extensions/OpenIDConnect-REL1_31-baea47f.tar.gz' | tar -xz -C ./extensions \
61+
&& curl -fSL 'https://extdist.wmflabs.org/dist/extensions/PluggableAuth-REL1_31-300ac44.tar.gz' | tar -xz -C ./extensions \
62+
&& curl -fSL 'https://extdist.wmflabs.org/dist/extensions/Scribunto-REL1_31-106fbf4.tar.gz' | tar -xz -C ./extensions \
63+
&& curl -fSL 'https://extdist.wmflabs.org/dist/extensions/UserMerge-REL1_31-a641f0c.tar.gz' | tar -xz -C ./extensions \
64+
# Skins
65+
&& curl -fSL 'https://extdist.wmflabs.org/dist/skins/MinervaNeue-REL1_31-2e70e79.tar.gz' | tar -xz -C ./skins
66+
67+
# Built-in Extensions
68+
RUN { \
69+
echo '{'; \
70+
echo ' "require": {'; \
71+
echo ' "mediawiki/maps": "^7"'; \
72+
echo ' },'; \
73+
echo ' "extra": {'; \
74+
echo ' "merge-plugin": {'; \
75+
echo ' "include": ['; \
76+
echo ' "extensions/OpenIDConnect/composer.json"'; \
77+
echo ' ]'; \
78+
echo ' }'; \
79+
echo ' }'; \
80+
echo '}'; \
81+
} > /var/www/html/w/composer.local.json
82+
83+
# Install built-in extensions + extension dependencies
84+
RUN php composer.phar update --no-dev \
85+
&& php composer.phar install -d ./extensions/AbuseFilter
86+
87+
# Permissions
88+
RUN chown -R www-data:www-data cache extensions images skins

LICENSE

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

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# About this Repo
2+
3+
Forked from https://github.com/wikimedia/mediawiki-docker but with more plugins.

0 commit comments

Comments
 (0)