From d2d1f5ed2a556b839ef2037a7433b9e5955cea7e Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 24 Jul 2020 15:23:12 -0400 Subject: [PATCH] Add QRLite Extension --- Dockerfile | 9 +++++++-- LocalSettings.php | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b395cc3..0acdeca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/LocalSettings.php b/LocalSettings.php index bed02d9..73359b3 100644 --- a/LocalSettings.php +++ b/LocalSettings.php @@ -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';