docker-mediawiki/Dockerfile

84 lines
3.5 KiB
Docker
Raw Normal View History

FROM mediawiki:1.35
RUN apt-get update \
2020-07-24 15:23:12 -04:00
&& apt-get install -y libldap2-dev libpng-dev git zip \
&& rm -rf /var/lib/apt/lists/* \
2020-07-24 15:23:12 -04:00
&& docker-php-ext-install -j$(nproc) ldap gd
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
# Needed for making branch name from MEDIAWIKI_MAJOR_VERSION
SHELL ["/bin/bash", "-c"]
# https://www.mediawiki.org/wiki/Extension:PluggableAuth
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
# https://www.mediawiki.org/wiki/Extension:LDAPProvider
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/LDAPProvider \
/var/www/html/extensions/LDAPProvider
# https://www.mediawiki.org/wiki/Extension:LDAPUserInfo
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/LDAPUserInfo \
/var/www/html/extensions/LDAPUserInfo
# https://www.mediawiki.org/wiki/Extension:LDAPAuthentication2
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/LDAPAuthentication2 \
/var/www/html/extensions/LDAPAuthentication2
# https://www.mediawiki.org/wiki/Extension:MobileFrontend
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \
https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend \
/var/www/html/extensions/MobileFrontend
# https://www.mediawiki.org/wiki/Extension:NativeSvgHandler
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_}\
https://gerrit.wikimedia.org/r/mediawiki/extensions/NativeSvgHandler \
/var/www/html/extensions/NativeSvgHandler
# https://www.mediawiki.org/wiki/Extension:CodeMirror
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror \
/var/www/html/extensions/CodeMirror
# https://www.mediawiki.org/wiki/Extension:Widgets
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/
2020-04-26 17:02:30 -04:00
# https://www.mediawiki.org/wiki/Extension:Semantic_ACL
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
# https://www.mediawiki.org/wiki/Extension:External_Data
RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \
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
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
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
# reset back to default shell
SHELL ["/bin/sh", "-c"]