Files
LinkTitles/Dockerfile
Daniel Kraus 767df5c4bf Make Dockerfile more resilient.
Also changes the password that is used for MediaWiki setup from
'admin' to 'linktitles'.
2021-03-30 21:08:23 +02:00

27 lines
747 B
Docker

# This Dockerfile can be used to create a Docker image/container
# that runs the unit tests on the LinkTitles extension.
FROM mediawiki:1.35
LABEL "MAINTAINER" Daniel Kraus (https://www.bovender.de)
RUN apt-get update -yqq && \
apt-get install -yqq \
php7.3-sqlite \
sqlite3 \
unzip \
zip
WORKDIR /var/www/html
ADD install-composer.sh install-composer.sh
RUN chmod +x install-composer.sh
RUN ./install-composer.sh
COPY . /var/www/html/extensions/LinkTitles/
RUN mkdir /data && chown www-data /data
RUN php composer.phar update
WORKDIR /var/www/html/maintenance
RUN php install.php --pass linktitles --dbtype sqlite --extensions LinkTitles Tests admin
WORKDIR /var/www/html/tests/phpunit
CMD ["php", "phpunit.php", "--group", "bovender"]