how to actually install mediawiki and run with docker?

4

1

I tried

mediawiki docker

it says:

When first run, the container will not contain a LocalSettings.php

But i don't understand how to get this contained LocalSettings.php what do I type to get this file? and how to I replace it?

Jas

Posted 2014-07-29T17:21:21.147

Reputation: 580

Answers

3

The docker images from mediawiki docker uses Volumes which is clearly given in the description on the page. In case of Docker images with volumes when you download the image you need to create a similar volume on your host too, because downloading a docker image doesn t download the docker volume.

As it is stated on that page, you need to create a volume in the host and put that LocalSettings.php file and then create a container as:

docker stop $CONFIG_CONTAINER
docker run -v /data/wiki:/data -d nickstenning/mediawiki

beginer

Posted 2014-07-29T17:21:21.147

Reputation: 239

1But where do I get this LocalSettings.php file from? – Jas – 2014-09-07T10:18:32.840

@Jas I dont have much idea about mediawiki, I guess this http://www.mediawiki.org/wiki/Manual:LocalSettings.php can help you.

– beginer – 2014-09-07T10:22:09.053

0

This is old, although I didn't have much success with copying in a previous LocalSettings.php. You just pass in the extra environment variables and a LocalSettings.php will be created in the data directory. Then you just put your custom changes in conf/CustomSettings.php

Use the following environmental variables to generate a LocalSettings.php

  • -e MEDIAWIKI_ADMIN_USER= (defaults to admin; configures default administrator username)

  • -e MEDIAWIKI_ADMIN_PASS= (defaults to rosebud; configures default administrator password)

https://github.com/wikimedia/mediawiki-docker

I at least imported a previous database to get the posts visible, using the generated config and just adding my custom settings.

Nathan G.

Posted 2014-07-29T17:21:21.147

Reputation: 1