Benjamin Yule Bädorf
c5456015ff
All checks were successful
Build docker image / build-image (push) Successful in 3m16s
38 lines
2.1 KiB
Docker
38 lines
2.1 KiB
Docker
FROM mediawiki:1.41.1
|
|
|
|
RUN apt-get update && apt-get install --yes curl libpq-dev tar unzip
|
|
|
|
RUN docker-php-ext-configure pgsql --with-pgsql=/usr/local/pgsql && \
|
|
docker-php-ext-install pgsql
|
|
|
|
ENV PLUGGABLE_AUTH_VERSION=REL1_41-d5b3ad8
|
|
ENV OPENID_CONNECT_VERSION=REL1_41-f428716
|
|
ENV TEMPLATE_STYLES_VERSION=REL1_41-7607e3c
|
|
|
|
RUN export PLUGGABLE_AUTH_SHA256SUM=1d002567bbf7a4b029b7c2b83df33eb59c1c4ceff05b8716119da3d81a0007a1 && \
|
|
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}
|
|
|
|
RUN export OPENID_CONNECT_SHA256SUM=9a0a8e8bd4cf77759da2ff8e65a8055310d14f7b054f6289baf42538dc46e04d && \
|
|
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}
|
|
|
|
RUN export TEMPLATE_STYLES_SHA256SUM=096ce6a6d7ee0d1432b2c49ca8cd86ad6a96a6af45650ca6b29a66677d60d5de && \
|
|
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
|