Skip to content

liviacarolgouvea/mediawiki-development

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mediawiki development environment

A development environment for Mediawiki

Setup development environment

Clone your project to folder volumes/src

Example:

git clone https://github.com/youroganization/repositoryname volumes/src

To each file that you want to override from your project into mediawiki, you will need to put inside folder volumes/src/mediawiki and run the follow command:

docker compose exec mediawiki php /var/www/scripts/init.php

Clone the MediaWiki project source, or put your existing mediawiki folder, into volumes/mediawiki

Example:

git clone  --progress --single-branch --depth 1 --branch 1.41.0 --recurse-submodules -j 4 https://gerrit.wikimedia.org/r/mediawiki/core.git volumes/mediawiki

Check if you will need to change any default environment value at docker.compose.yml and if you need to change, create a .env file with the custom environments values.

Run the command:

docker compose up

Install extension

COMPOSER=composer.local.json composer require --no-update mediawiki/page-forms
composer update --no-dev -o

Updates if have database change

php maintenance/update.php --quick

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 53.6%
  • Dockerfile 30.4%
  • Shell 16.0%