2019-08-16 13:55:44 -04:00
|
|
|
FROM mediawiki:latest
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y libldap2-dev git zip \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& docker-php-ext-install -j$(nproc) ldap
|
|
|
|
|
2019-09-27 16:11:14 -04:00
|
|
|
COPY composer.local.json /var/www/html/
|
|
|
|
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
|
|
|
RUN cd /var/www/html/ && composer update --no-dev
|
|
|
|
|
2020-04-26 16:32:30 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:PluggableAuth
|
2019-08-16 13:55:44 -04:00
|
|
|
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
|
2020-01-08 21:12:29 -05:00
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/PluggableAuth \
|
|
|
|
/var/www/html/extensions/PluggableAuth
|
|
|
|
|
2020-04-26 16:32:30 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:LDAPProvider
|
2020-01-08 21:12:29 -05:00
|
|
|
RUN git clone --depth 1 \
|
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/LDAPProvider \
|
|
|
|
/var/www/html/extensions/LDAPProvider
|
|
|
|
|
2020-04-26 16:32:30 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:LDAPUserInfo
|
2020-01-08 21:12:29 -05:00
|
|
|
RUN git clone --depth 1 \
|
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/LDAPUserInfo \
|
|
|
|
/var/www/html/extensions/LDAPUserInfo
|
|
|
|
|
2020-04-26 16:32:30 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:LDAPAuthentication2
|
2020-01-08 21:12:29 -05:00
|
|
|
RUN git clone --depth 1 \
|
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/LDAPAuthentication2 \
|
|
|
|
/var/www/html/extensions/LDAPAuthentication2
|
2019-08-16 13:55:44 -04:00
|
|
|
|
2020-04-26 16:32:30 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:VisualEditor
|
2019-08-16 13:55:44 -04:00
|
|
|
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
|
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor.git \
|
|
|
|
/var/www/html/extensions/VisualEditor \
|
|
|
|
&& cd /var/www/html/extensions/VisualEditor \
|
|
|
|
&& git submodule update --depth 1 --init
|
|
|
|
|
2020-04-26 16:32:30 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:MobileFrontend
|
2019-08-16 13:55:44 -04:00
|
|
|
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
|
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend \
|
|
|
|
/var/www/html/extensions/MobileFrontend
|
|
|
|
|
2020-04-26 16:32:30 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:NativeSvgHandler
|
2019-08-16 13:55:44 -04:00
|
|
|
RUN git clone --depth 1 \
|
|
|
|
https://github.com/p12tic/NativeSvgHandler.git \
|
|
|
|
/var/www/html/extensions/NativeSvgHandler
|
|
|
|
|
2020-04-26 16:32:30 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:CodeMirror
|
2019-08-16 13:55:44 -04:00
|
|
|
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
|
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror \
|
|
|
|
/var/www/html/extensions/CodeMirror
|
|
|
|
|
2020-04-26 16:32:30 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:Widgets
|
2019-09-27 16:11:33 -04:00
|
|
|
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
|
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/Widgets \
|
|
|
|
/var/www/html/extensions/Widgets \
|
|
|
|
&& cd /var/www/html/extensions/Widgets && composer update --no-dev \
|
|
|
|
&& chown www-data: compiled_templates/
|
2019-08-16 13:55:44 -04:00
|
|
|
|
2020-04-26 17:02:30 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:Semantic_ACL
|
|
|
|
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
|
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/SemanticACL \
|
|
|
|
/var/www/html/extensions/SemanticACL
|
|
|
|
|
2020-06-25 03:25:03 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:TemplateData
|
|
|
|
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
|
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData \
|
|
|
|
/var/www/html/extensions/TemplateData
|