Skip to content

A bunch of scripts for streamline setup and use of a mediawiki-docker instance on any linux machine

Notifications You must be signed in to change notification settings

sohomdatta1/mediawiki-scripts

Repository files navigation

MediaWiki scripts

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).

Setup

docker and docker-compose must be installed before cloning this repo.

⚠️ Follow the post-install instructions to make sure you can run docker commands without sudo.

  • 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 (or source ~/.bashrc)
  • Navigate to your work-space and run mw install

What you have

You get a few commands that allow you to control the MediaWiki-docker instance

  • mw start: Start up the instance
  • mw stop: Saves the state of the docker instance and shuts it down
  • mw destroy: Destroys the docker instance
  • mw reinstall: Re installs MediaWiki
  • mw bash: Runs bash as root in the docker instance
  • mw install: Clones the MediaWiki source code in the current directory and creates initial instance all in one command.
  • mw update: Runs the database update script
  • mw: Convenience shortcut to the directory where the source code was cloned.
  • mw config: Convenience shortcut to viewing the LocalSettings.php file of the mediawiki instance
  • mw get (extensionname): Clones the repository to the extensions/ directory adds wfLoadExtension( '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.

Future ideas to implement

  • ... (Suggestion are certainly welcomed)

About

A bunch of scripts for streamline setup and use of a mediawiki-docker instance on any linux machine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages