MediaWiki-Docker/Extension/MediaSearch

From mediawiki.org
Jump to navigation Jump to search

Requirements[edit]

  1. Docker
  2. Docker Compose
  3. A gerrit account and properly configured git

Instructions[edit]

  1. Clone Mediawiki Core
  2. Create a new file called docker-compose.override.yml in the root of the repository and copy the contents of this gist into it.
  3. Follow the instructions in DEVELOPERS.md under "Start environment and install MediaWiki" to get Docker running
  4. Create a new file called setup.sh in the root of the repository and copy the contents of this gist into it. Run chmod 777 setup.sh to make the file executable.
  5. Run ./setup.sh in the root of the repository. This will take a little while.
  6. Visit http://localhost:8080/w/index.php?title=Special:NewMediaSearch and start searching production Commons content. Production Wikidata will be used for autocomplete suggestions. This is enabled by the $wgMediaSearchLocalDev config variable in LocalSettings.php.