Compare commits

...

3 commits

Author SHA1 Message Date
13601d32f5 Enable production PHP settings 2021-09-25 09:36:51 +02:00
37db1342b5 Update composer to >2 2021-09-12 16:37:40 +02:00
56c375b7b1 Bump Mediawiki to 1.36 2021-09-12 16:33:09 +02:00
3 changed files with 20 additions and 17 deletions

View file

@ -1,7 +1,6 @@
FROM mediawiki:1.35
FROM mediawiki:1.36
# Plugins are not compatible with composer 2 yet
ARG COMPOSER_VERSION=1.10.21
ARG COMPOSER_VERSION=2.1.6
ENV \
WG_SITENAME="Test Wiki" \
@ -60,11 +59,11 @@ RUN set -eu; \
# JsonConfig required by Graph.
RUN set -eu; \
cd /var/www/html/extensions; \
curl https://extdist.wmflabs.org/dist/extensions/JsonConfig-REL1_35-1b79879.tar.gz |tar -xz; \
curl https://extdist.wmflabs.org/dist/extensions/Graph-REL1_35-09f0338.tar.gz |tar -xz; \
curl https://extdist.wmflabs.org/dist/extensions/SubPageList3-REL1_35-622c298.tar.gz |tar -xz; \
curl https://extdist.wmflabs.org/dist/extensions/MsUpload-REL1_35-5998b96.tar.gz |tar -xz; \
curl https://extdist.wmflabs.org/dist/extensions/TemplateStyles-REL1_35-7a40a6a.tar.gz |tar -xz
curl https://extdist.wmflabs.org/dist/extensions/JsonConfig-REL1_36-609a991.tar.gz |tar -xz; \
curl https://extdist.wmflabs.org/dist/extensions/Graph-REL1_36-67b02d1.tar.gz |tar -xz; \
curl https://extdist.wmflabs.org/dist/extensions/SubPageList3-REL1_36-f5d7175.tar.gz |tar -xz; \
curl https://extdist.wmflabs.org/dist/extensions/MsUpload-REL1_36-a6bfb91.tar.gz |tar -xz; \
curl https://extdist.wmflabs.org/dist/extensions/TemplateStyles-REL1_36-b82a604.tar.gz |tar -xz
# Install composer packages
RUN set -eu; \

View file

@ -1,8 +1,8 @@
{
"require": {
"mediawiki/semantic-bundle": "~4.0",
"mediawiki/semantic-bundle": "~5.0",
"mediawiki/semantic-scribunto": "~2.1",
"wikimedia/css-sanitizer": "2.0.1"
"wikimedia/css-sanitizer": "3.0.2"
}
}

View file

@ -7,6 +7,17 @@ if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
error_reporting(0);
# Enable long error messages
if (getenv("DEBUG")) {
$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true;
$wgShowSQLErrors = true;
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', '1');
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
@ -156,13 +167,6 @@ enableSemantics( getenv("SEMANTIC_URL") );
# Set Subpages on
$wgNamespacesWithSubpages[NS_MAIN] = 1;
# Enable long error messages
if (getenv("DEBUG")) {
$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true;
$wgShowSQLErrors = true;
}
# Local configuration for MediaWiki
ini_set( 'max_execution_time', 1000 );
ini_set('memory_limit', '-1');