Git Product home page Git Product logo

mediawiki-docker-dev's Introduction

Instructions

If you don't want to use the default port of 8080 and the default mediawiki path of ~/dev/git/gerrit/mediawiki then please just change the .env file for now....

Install

1) Install Docker & Docker Compose

https://docs.docker.com/compose/install/

On linux you will have to add your user to the docker group: https://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo#477554

2) Clone this repository

git clone https://github.com/addshore/mediawiki-docker-dev.git ~/dev/github/addshore/mediawiki-docker-dev

3) Clone MediaWiki Core & the Vector Skin

From Wikimedia Gerrit:

git clone https://gerrit.wikimedia.org/r/mediawiki/core ~/dev/gerrit/mediawiki
git clone https://gerrit.wikimedia.org/r/mediawiki/skins/Vector ~/dev/gerrit/mediawiki/skins/Vector

Or from Github Mirror (often quicker):

git clone https://github.com/wikimedia/mediawiki.git ~/dev/gerrit/mediawiki
git clone https://github.com/wikimedia/mediawiki-skins-Vector.git ~/dev/gerrit/mediawiki/skins/Vector

# You can then set the remote to point back to gerrit:

git remote set-url origin https://gerrit.wikimedia.org/r/mediawiki/core
git remote set-url origin https://gerrit.wikimedia.org/r/mediawiki/skins/Vector

4) Create a basic LocalSettings.php

The .docker/LocalSettings.php file will exist within the containers running Mediawiki.

Make a LocalSettings.php in the root of the Mediawiki repo containing the following:

<?php
require_once __DIR__ . '/.docker/LocalSettings.php';

5) Install Mediawiki databases

~/dev/github/addshore/mediawiki-docker-dev/up
~/dev/github/addshore/mediawiki-docker-dev/install
~/dev/github/addshore/mediawiki-docker-dev/down

6) Update your local hosts file

You will need to check the ./config/local/hosts file and add these to your local hosts file.

Operation

You need to populate your hosts file to get the most out of this docker stuff.

Running the up script will tell you what you need to add.

To start the containers:

~/dev/github/addshore/mediawiki-docker-dev/up

To stop the containers:

~/dev/github/addshore/mediawiki-docker-dev/down

Access

Web

Tools

Mediawiki

Container

You can run commands using the name of the container:

docker exec -it "mediawikidev_mediawiki-apache-php7_1" bash

If this doesn't work, Get the ID of the container that you want to run a command on:

docker container ls

And then use it to run a command:

docker exec -it "98ur10fkj1909j3" bash

TODO

  • FIX HHVM strict mode
    • Strict Warning: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function.
  • Statsv endpoint
  • Script to install mediawiki on one of the databases...
  • Setup awesomeness db names and stuff
    • [webserver].[runtime].[dbtype].[dbsuffix].mw <<< :( requires wildcard domains......
    • dbname = [dbtype].[dbsuffix]

mediawiki-docker-dev's People

Contributors

addshore avatar

Watchers

Sébastien Santoro avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.