Compare commits
3 commits
184be03d94
...
13601d32f5
Author | SHA1 | Date | |
---|---|---|---|
13601d32f5 | |||
37db1342b5 | |||
56c375b7b1 |
3 changed files with 20 additions and 17 deletions
15
Dockerfile
15
Dockerfile
|
@ -1,7 +1,6 @@
|
||||||
FROM mediawiki:1.35
|
FROM mediawiki:1.36
|
||||||
|
|
||||||
# Plugins are not compatible with composer 2 yet
|
ARG COMPOSER_VERSION=2.1.6
|
||||||
ARG COMPOSER_VERSION=1.10.21
|
|
||||||
|
|
||||||
ENV \
|
ENV \
|
||||||
WG_SITENAME="Test Wiki" \
|
WG_SITENAME="Test Wiki" \
|
||||||
|
@ -60,11 +59,11 @@ RUN set -eu; \
|
||||||
# JsonConfig required by Graph.
|
# JsonConfig required by Graph.
|
||||||
RUN set -eu; \
|
RUN set -eu; \
|
||||||
cd /var/www/html/extensions; \
|
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/JsonConfig-REL1_36-609a991.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/Graph-REL1_36-67b02d1.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/SubPageList3-REL1_36-f5d7175.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/MsUpload-REL1_36-a6bfb91.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/TemplateStyles-REL1_36-b82a604.tar.gz |tar -xz
|
||||||
|
|
||||||
# Install composer packages
|
# Install composer packages
|
||||||
RUN set -eu; \
|
RUN set -eu; \
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"require": {
|
"require": {
|
||||||
"mediawiki/semantic-bundle": "~4.0",
|
"mediawiki/semantic-bundle": "~5.0",
|
||||||
"mediawiki/semantic-scribunto": "~2.1",
|
"mediawiki/semantic-scribunto": "~2.1",
|
||||||
|
|
||||||
"wikimedia/css-sanitizer": "2.0.1"
|
"wikimedia/css-sanitizer": "3.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,6 +7,17 @@ if ( !defined( 'MEDIAWIKI' ) ) {
|
||||||
exit;
|
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
|
## Uncomment this to disable output compression
|
||||||
# $wgDisableOutputCompression = true;
|
# $wgDisableOutputCompression = true;
|
||||||
|
|
||||||
|
@ -156,13 +167,6 @@ enableSemantics( getenv("SEMANTIC_URL") );
|
||||||
# Set Subpages on
|
# Set Subpages on
|
||||||
$wgNamespacesWithSubpages[NS_MAIN] = 1;
|
$wgNamespacesWithSubpages[NS_MAIN] = 1;
|
||||||
|
|
||||||
# Enable long error messages
|
|
||||||
if (getenv("DEBUG")) {
|
|
||||||
$wgShowExceptionDetails = true;
|
|
||||||
$wgShowDBErrorBacktrace = true;
|
|
||||||
$wgShowSQLErrors = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Local configuration for MediaWiki
|
# Local configuration for MediaWiki
|
||||||
ini_set( 'max_execution_time', 1000 );
|
ini_set( 'max_execution_time', 1000 );
|
||||||
ini_set('memory_limit', '-1');
|
ini_set('memory_limit', '-1');
|
||||||
|
|
Loading…
Reference in a new issue