Update test docker to work with MW 1.44

This commit is contained in:
2025-07-10 12:50:08 +02:00
parent c80706e144
commit 15f8fc5a3b
2 changed files with 4 additions and 3 deletions

View File

@ -1,16 +1,17 @@
# This Dockerfile can be used to create a Docker image/container # This Dockerfile can be used to create a Docker image/container
# that runs the unit tests on the LinkTitles extension. # that runs the unit tests on the LinkTitles extension.
FROM mediawiki:1.37 FROM mediawiki:1.44
LABEL "MAINTAINER" Daniel Kraus (https://www.bovender.de) LABEL "MAINTAINER" Daniel Kraus (https://www.bovender.de)
RUN apt-get update -yqq && \ RUN apt-get update -yqq && \
apt-get install -yqq \ apt-get install -yqq \
php7.4-sqlite \
sqlite3 \ sqlite3 \
unzip \ unzip \
zip zip
WORKDIR /var/www/html WORKDIR /var/www/html
ADD install-composer.sh install-composer.sh ADD install-composer.sh install-composer.sh
RUN sed -i 's/\r$//' install-composer.sh
RUN chmod +x install-composer.sh RUN chmod +x install-composer.sh
RUN ./install-composer.sh RUN ./install-composer.sh

View File

@ -16,7 +16,7 @@ then
fi fi
# May need to remove the explicit pinning of version 1 in the future # May need to remove the explicit pinning of version 1 in the future
php composer-setup.php --quiet --1 php composer-setup.php --quiet
RESULT=$? RESULT=$?
rm composer-setup.php rm composer-setup.php
exit $RESULT exit $RESULT