User:Inductiveload/Wikisource in Docker

Generally, the instructions are as detailed here:
 * MediaWiki-Docker
 * https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/master/DEVELOPERS.md

Downloading
 git clone ssh://@gerrit.wikimedia.org:29418/mediawiki/extensions mw-extensions cd mw-extensions git submodule update --init --recursive CirrusSearch Gadgets MobileFrontend Poem TemplateStyles WikiEditor Cite LabeledSectionTransclusion ParserFunctions ProofreadPage Scribunto UniversalLanguageSelector Wikisource TemplateSandbox CodeMirror  cd mediawiki/extensions ln -s ../../mw-extensions/ProofreadPage. ...  git clone ssh://@gerrit.wikimedia.org:29418/mediawiki/skins mw-skins cd mw-skins git submodule update --init --recursive Vector MinervaNeue  cd mediawiki/skins ln -s ../../mw-skins/Vector. ...
 * Download MW core:
 * Download extensions:
 * Download extensions:
 * Symlink the extensions you want:
 * Download skins:
 * Symlink the skins

LocalSettings.php
This is the  used by WMF, which includes Wikisource: https://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php. You can use this for reference.

Dockerfile
We need to set a Dockerfile to install things like

Follow MediaWiki-Docker/Configuration_recipes/Customize_base_image, using a Dockerfile like this:

Annoying extras

 * Run  in

Update the wiki
docker-compose exec mediawiki php extensions/Wikibase/client/maintenance/populateInterwiki.php docker-compose exec mediawiki php maintenance/update.php --quick

Import useful pages
Mediawiki:Proofreadpage index template Mediawiki:Proofreadpage index data config Mediawiki:Proofreadpage pagenum template MediaWiki:Gadget-PurgeTab.js MediaWiki:Gadget-PurgeTab

Set up whichever gadgets you imported at your Mediawiki:Gadgets-definition. E.g.:


 * PurgeTab[ResourceLoader|dependencies=mediawiki.util,mediawiki.api|default]|PurgeTab.js