Add QRLite Extension

This commit is contained in:
Adam Goldsmith 2020-07-24 15:23:12 -04:00
parent fb10510dc4
commit d2d1f5ed2a
2 changed files with 9 additions and 2 deletions

View File

@ -1,9 +1,9 @@
FROM mediawiki:latest
RUN apt-get update \
&& apt-get install -y libldap2-dev git zip \
&& apt-get install -y libldap2-dev libpng-dev git zip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-install -j$(nproc) ldap
&& 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
@ -72,3 +72,8 @@ RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
RUN git clone --depth 1 \
https://gerrit.wikimedia.org/r/mediawiki/extensions/ExternalData \
/var/www/html/extensions/ExternalData
# https://www.mediawiki.org/wiki/Extension:QRLite
RUN git clone --depth 1 \
https://github.com/gesinn-it/QRLite \
/var/www/html/extensions/QRLite

View File

@ -228,6 +228,8 @@ wfLoadExtension( 'TemplateData' );
require_once "$IP/extensions/Widgets/Widgets.php";
require_once "$IP/extensions/QRLite/QRLite.php";
wfLoadExtension( 'ExternalData' );
$edgStringReplacements['SNIPEIT_URL'] = 'https://inventory.claremontmakerspace.org';
$edgAllowExternalDataFrom = 'SNIPEIT_URL';