This repository contains the docker container, software configuration and development tools for the Consumer Rights Wiki.
- Docker
- make
For Windows users we recommend using the Windows Subsystem for Linux (WSL).
- Clone submodules
git submodule init git submodule update
- Configure a .env file (see .env.example for reference).
- Start the development instance
make run
- Initiate the database
make init
- Run the update script (initialise all other tables)
make update
MediaWiki requires you to run an update script occasionally (with changes to extensions or other database updates).
You can run this maintenance script manually by running the following command:
make updateMediaWiki uses a job-queue based system for specific maintenance tasks, this command is automatically run inside the container by a cron-job. However you can manually run the maintenance script by running the following command:
make run-jobscrw/
├── conf/ # Software configuration files
│ ├── LocalSettings.php # Main MediaWiki configuration file
│ └── LocalSettings/ # Additional MediaWiki configuration
├── cron/ # Scheduled maintenance scripts
├── data/ # Static assets served by the wiki
├── extensions/ # MediaWiki extensions (Git submodules)
├── patches/ # Build-time patches
├── scripts/ # Scripts invoked by the Makefile
├── skins/ # MediaWiki skins
├── tests/ # Tests
├── docker-compose.yml # Docker compose configuration for development
└── Dockerfile # Docker container build instructions
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.