mediawiki-oidc-docker/Dockerfile

22 lines
947 B
Docker

FROM mediawiki:stable
RUN apt-get update && apt-get install -y wget tar unzip libpq-dev
RUN docker-php-ext-configure pdo_pgsql
RUN docker-php-ext-configure pgsql --with-pgsql=/usr/local/pgsql
RUN wget https://extdist.wmflabs.org/dist/extensions/PluggableAuth-REL1_40-eb10a76.tar.gz
RUN tar -xzf PluggableAuth-REL1_40-eb10a76.tar.gz -C /var/www/html/extensions
RUN rm PluggableAuth-REL1_40-eb10a76.tar.gz
RUN wget https://extdist.wmflabs.org/dist/extensions/OpenIDConnect-REL1_40-e97e0b1.tar.gz
RUN tar -xzf OpenIDConnect-REL1_40-e97e0b1.tar.gz -C /var/www/html/extensions
RUN rm OpenIDConnect-REL1_40-e97e0b1.tar.gz
RUN echo '{ "extra": { "merge-plugin": { "include": [ "extensions/OpenIDConnect/composer.json" ] } } }' > /var/www/html/composer.local.json
RUN php -r "copy('https://getcomposer.org/installer', '/tmp/composer-setup.php');"
RUN php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer
RUN composer update