2021-10-21 01:45:59 -04:00
|
|
|
FROM mediawiki:1.36
|
2019-08-16 13:55:44 -04:00
|
|
|
|
|
|
|
RUN apt-get update \
|
2020-07-24 15:23:12 -04:00
|
|
|
&& apt-get install -y libldap2-dev libpng-dev git zip \
|
2019-08-16 13:55:44 -04:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
2020-07-24 15:23:12 -04:00
|
|
|
&& docker-php-ext-install -j$(nproc) ldap gd
|
2019-08-16 13:55:44 -04:00
|
|
|
|
2019-09-27 16:11:14 -04:00
|
|
|
COPY composer.local.json /var/www/html/
|
2021-10-27 20:21:08 -04:00
|
|
|
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
2019-09-27 16:11:14 -04:00
|
|
|
RUN cd /var/www/html/ && composer update --no-dev
|
|
|
|
|
2020-10-13 01:11:53 -04:00
|
|
|
# Needed for making branch name from MEDIAWIKI_MAJOR_VERSION
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
|
2020-04-26 16:32:30 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:PluggableAuth
|
2020-10-13 01:11:53 -04:00
|
|
|
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \
|
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-10-13 01:11:53 -04:00
|
|
|
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \
|
2021-10-21 01:45:59 -04:00
|
|
|
https://github.com/wikimedia/mediawiki-extensions-LDAPProvider \
|
2020-01-08 21:12:29 -05:00
|
|
|
/var/www/html/extensions/LDAPProvider
|
|
|
|
|
2020-04-26 16:32:30 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:LDAPUserInfo
|
2020-10-13 01:11:53 -04:00
|
|
|
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \
|
2021-10-21 01:45:59 -04:00
|
|
|
https://github.com/wikimedia/mediawiki-extensions-LDAPUserInfo \
|
2020-01-08 21:12:29 -05:00
|
|
|
/var/www/html/extensions/LDAPUserInfo
|
|
|
|
|
2020-04-26 16:32:30 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:LDAPAuthentication2
|
2020-10-13 01:11:53 -04:00
|
|
|
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \
|
2021-10-21 01:45:59 -04:00
|
|
|
https://github.com/wikimedia/mediawiki-extensions-LDAPAuthentication2 \
|
2020-01-08 21:12:29 -05:00
|
|
|
/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:MobileFrontend
|
2020-10-13 01:11:53 -04:00
|
|
|
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \
|
2019-08-16 13:55:44 -04:00
|
|
|
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
|
2020-10-13 01:11:53 -04:00
|
|
|
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_}\
|
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/NativeSvgHandler \
|
2019-08-16 13:55:44 -04:00
|
|
|
/var/www/html/extensions/NativeSvgHandler
|
|
|
|
|
2020-04-26 16:32:30 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:CodeMirror
|
2020-10-13 01:11:53 -04:00
|
|
|
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \
|
2019-08-16 13:55:44 -04:00
|
|
|
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
|
2020-10-13 01:11:53 -04:00
|
|
|
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \
|
2019-09-27 16:11:33 -04:00
|
|
|
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
|
2020-10-13 01:11:53 -04:00
|
|
|
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \
|
2020-04-26 17:02:30 -04:00
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/SemanticACL \
|
|
|
|
/var/www/html/extensions/SemanticACL
|
|
|
|
|
2020-07-05 02:01:32 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:External_Data
|
2020-10-13 01:11:53 -04:00
|
|
|
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \
|
2020-07-05 02:01:32 -04:00
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/ExternalData \
|
|
|
|
/var/www/html/extensions/ExternalData
|
2020-07-24 15:23:12 -04:00
|
|
|
|
|
|
|
# https://www.mediawiki.org/wiki/Extension:QRLite
|
|
|
|
RUN git clone --depth 1 \
|
|
|
|
https://github.com/gesinn-it/QRLite \
|
|
|
|
/var/www/html/extensions/QRLite
|
2020-07-24 15:26:16 -04:00
|
|
|
|
|
|
|
# https://www.mediawiki.org/wiki/Extension:CSS
|
2020-10-13 01:11:53 -04:00
|
|
|
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \
|
2020-07-24 15:26:16 -04:00
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/CSS \
|
|
|
|
/var/www/html/extensions/CSS
|
2020-07-24 15:28:22 -04:00
|
|
|
|
|
|
|
# https://www.mediawiki.org/wiki/Extension:Variables
|
2020-10-13 01:11:53 -04:00
|
|
|
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \
|
2020-07-24 15:28:22 -04:00
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/Variables \
|
|
|
|
/var/www/html/extensions/Variables
|
2020-10-13 01:11:53 -04:00
|
|
|
|
2021-10-27 20:22:23 -04:00
|
|
|
# https://www.mediawiki.org/wiki/Extension:Approved_Revs
|
|
|
|
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \
|
|
|
|
https://gerrit.wikimedia.org/r/mediawiki/extensions/ApprovedRevs \
|
|
|
|
/var/www/html/extensions/ApprovedRevs
|
|
|
|
|
2020-10-13 01:11:53 -04:00
|
|
|
# reset back to default shell
|
|
|
|
SHELL ["/bin/sh", "-c"]
|
2020-11-12 15:19:53 -05:00
|
|
|
|
|
|
|
# run update script on start
|
|
|
|
CMD ["sh", "-c", "(sleep 5; php /var/www/html/maintenance/update.php --quick --quiet) & apache2-foreground"]
|