User:CFeng (WMF)/MachineVisionSetup

Introduction
This page introduces you to install MediaWiki via Docker and set up the MachineVision extension on it.

Install Docker Compose
https://docs.docker.com/compose/install/

Clone mediawiki-docker-dev
Clone the code to the path you would like to work on, I would recommend to clone it into :

git clone git@github.com:addshore/mediawiki-docker-dev.git

And now, it is in the

Clone MediaWiki and the skin
Since the repository above only contains settings and scripts about setting up MediaWiki on Docker, we will need to install the MediaWiki by ourselves.

Clone it into : git clone git@github.com:wikimedia/mediawiki.git

And now, it is in the

Also, you will need a default skin for the entire MediaWiki page to the skins folder: cd ~/Documents/mediawiki/skins/ git clone git@github.com:wikimedia/mediawiki-skins-Vector.git Vector

Install Composer
Before running the MediaWiki installation scripts, you will need the Composer. Please download and install it on your machine. https://getcomposer.org/download/

Run composer install for MediaWiki
Run the followingg script to install MediaWiki cd ~/Documents/mediawiki compose install

Create a LocalSettings.php for mediawiki
The LocalSettings.php contains the information that MediaWiki needs and you will need to update this file every time you add extensions.

Since the  needs a lot of extensions and other settings, here is the copy of my LocalSettings.php and please copy that into the User:CFeng_(WMF)/MachineVisionSetup/LocalSettings.php

Install extensions for mediawiki
The LocalSettings.php has the following code:

wfLoadExtension( 'CirrusSearch' ); wfLoadExtension( 'Elastica' ); wfLoadExtension( 'MachineVision' ); wfLoadExtension( 'UniversalLanguageSelector' ); wfLoadExtension( 'UploadWizard' ); wfLoadExtension( 'WikibaseCirrusSearch' ); wfLoadExtension( 'WikibaseMediaInfo' ); wfLoadExtension( 'WikimediaEditorTasks' );

which you will need to install the extensions manually.

Please go to the [] to find the extensions and copy them to the

or, you can run the following scripts:

cd ~/Documents/mediawiki/extensions git clone git@github.com:wikimedia/mediawiki-extensions-CirrusSearch.git CirrusSearch git clone git@github.com:wikimedia/mediawiki-extensions-Elastica.git Elastica git clone git@github.com:wikimedia/mediawiki-extensions-MachineVision.git MachineVision git clone git@github.com:wikimedia/mediawiki-extensions-UniversalLanguageSelector.git UniversalLanguageSelector git clone git@github.com:wikimedia/mediawiki-extensions-Wikibase.git Wikibase git clone git@github.com:wikimedia/mediawiki-extensions-WikibaseCirrusSearch.git WikibaseCirrusSearch git clone git@github.com:wikimedia/mediawiki-extensions-WikibaseMediaInfo.git WikibaseMediaInfo git clone git@github.com:wikimedia/mediawiki-extensions-WikimediaEditorTasks.git WikimediaEditorTasks