A bunch of convenience scripts that I personally use to create and spin-up a MediaWiki-docker (the new one) instance on any linux machine. It's especially useful if you keep on bricking/get bored with your linux distribution and reinstall everything every two months or so (me).
✋
docker
anddocker-compose
must be installed before cloning this repo.
⚠️ Follow the post-install instructions to make sure you can rundocker
commands withoutsudo
.
- Git clone this repository
cd
into the directory of the cloned repository- Give execute permissions to the current user for all scripts in the directory
- run
./setup
source ~/.zshrc
(orsource ~/.bashrc
)- Navigate to your work-space and run
mw install
You get a few commands that allow you to control the MediaWiki-docker instance
mw start
: Start up the instancemw stop
: Saves the state of the docker instance and shuts it downmw destroy
: Destroys the docker instancemw reinstall
: Re installs MediaWikimw bash
: Runs bash as root in the docker instancemw install
: Clones the MediaWiki source code in the current directory and creates initial instance all in one command.mw update
: Runs the database update scriptmw
: Convenience shortcut to the directory where the source code was cloned.mw config
: Convenience shortcut to viewing the LocalSettings.php file of the mediawiki instancemw get (extensionname)
: Clones the repository to theextensions/
directory addswfLoadExtension( 'extensionname' );
to the LocalSettings.php and runs the update script.mw git-update
: Updates all the cloned extensions and skins.mw version
: Version number and some cool ascii art.mw help
: Overview of all commands.
The benefit here is that you can run all these commands wherever you are in the system. You won't need to navigate away from whatever you are doing.
Note: This repository is actually inspired by the scripts present in the old MediaWiki-docker-dev repository.
- ... (Suggestion are certainly welcomed)