teutat3s
12c7616bef
All checks were successful
Build docker image / build-image (push) Successful in 4m58s
https://lists.wikimedia.org/hyperkitty/list/wikitech-l@lists.wikimedia.org/thread/KV6USPRY7V2WST7KAWYF7XYVPU7OX3S2/
38 lines
2.1 KiB
Docker
38 lines
2.1 KiB
Docker
FROM mediawiki:1.42.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_42-f0a83a8
|
|
ENV OPENID_CONNECT_VERSION=REL1_42-957026f
|
|
ENV TEMPLATE_STYLES_VERSION=REL1_42-8a7dd4a
|
|
|
|
RUN export PLUGGABLE_AUTH_SHA256SUM=a84352d07a1aef4ba60925a7bb1a06821eb4ce3cf08b26fce148a4c47c19db0e && \
|
|
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=196071ecfc7d40dc08a2f1319a7981a20a9abf021d0413b93407af49c6ddaab9 && \
|
|
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=f6e9a5d03bd59aa420ee4484ea633a18d4e50b6e7df401cb46f1afe0065ca37f && \
|
|
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
|