mediawiki-oidc-docker/Dockerfile

22 lines
941 B
Docker
Raw Normal View History

2023-10-30 10:37:36 +00:00
FROM mediawiki:stable
2023-11-15 19:54:07 +00:00
RUN apt-get update && apt-get install -y wget tar unzip libpq-dev
RUN docker-php-ext-configure pgsql --with-pgsql=/usr/local/pgsql
2023-11-15 20:14:55 +00:00
RUN docker-php-ext-install pgsql
2023-11-15 19:54:07 +00:00
2023-10-30 10:37:36 +00:00
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