mediawiki-oidc-docker/Dockerfile

38 lines
2.1 KiB
Docker
Raw Normal View History

FROM mediawiki:1.42.3
2023-10-30 10:37:36 +00:00
RUN apt-get update && apt-get install --yes curl libpq-dev tar unzip
2023-11-15 19:54:07 +00:00
RUN docker-php-ext-configure pgsql --with-pgsql=/usr/local/pgsql && \
docker-php-ext-install pgsql
2023-10-30 10:37:36 +00:00
ENV PLUGGABLE_AUTH_VERSION=REL1_42-b35addc
ENV OPENID_CONNECT_VERSION=REL1_42-83024de
ENV TEMPLATE_STYLES_VERSION=REL1_42-8cb3a92
2023-10-30 10:37:36 +00:00
RUN export PLUGGABLE_AUTH_SHA256SUM=568d4eb94e1ea99f2db8253ab5894688d5ef9ca8d3556c0b9679259d7b34f1da \
export archive=PluggableAuth-${PLUGGABLE_AUTH_VERSION}.tar.gz && \
curl --location --silent --output /tmp/${archive} https://extdist.wmflabs.org/dist/extensions/${archive} && \
echo "${PLUGGABLE_AUTH_SHA256SUM} /tmp/${archive}" | sha256sum --check && \
tar --extract --gzip --file /tmp/${archive} --directory /var/www/html/extensions && \
rm /tmp/${archive}
2023-10-30 10:37:36 +00:00
RUN export OPENID_CONNECT_SHA256SUM=6f6e934034418048b65e472b5ef821d7a4b04687eac2a2e14b2abad122c63b0b && \
export archive=OpenIDConnect-${OPENID_CONNECT_VERSION}.tar.gz && \
curl --location --silent --output /tmp/${archive} https://extdist.wmflabs.org/dist/extensions/${archive} && \
echo "${OPENID_CONNECT_SHA256SUM} /tmp/${archive}" | sha256sum --check && \
tar --extract --gzip --file /tmp/${archive} --directory /var/www/html/extensions && \
rm /tmp/${archive}
2023-10-30 10:37:36 +00:00
RUN export TEMPLATE_STYLES_SHA256SUM=d13c30c41b83f5b41285d66ce67c64020cc64336214c0b948d2795eb9e5465ad && \
2024-01-08 13:08:16 +00:00
export archive=TemplateStyles-${TEMPLATE_STYLES_VERSION}.tar.gz && \
curl --location --silent --output /tmp/${archive} https://extdist.wmflabs.org/dist/extensions/${archive} && \
echo "${TEMPLATE_STYLES_SHA256SUM} /tmp/${archive}" | sha256sum --check && \
tar --extract --gzip --file /tmp/${archive} --directory /var/www/html/extensions && \
rm /tmp/${archive}
RUN echo '{ "extra": { "merge-plugin": { "include": [ "extensions/OpenIDConnect/composer.json" ] } } }' \
> /var/www/html/composer.local.json && \
php -r "copy('https://getcomposer.org/installer', '/tmp/composer-setup.php');" && \
php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer && \
composer update