offspot / wikifundi

Create a pre-configured Mediawiki for offline Wikipedia contribution teaching
11 stars 2 forks source link

WikiFundi

WikiFundi is a solution which provide a pre-configured Mediawiki in a similar way like Wikipedia. Probably the easiest way to train users if you do not have access to Internet!

Install empty MediaWiki

Run for english version :

docker run -p 80:80 -v ${PWD}/data-init:/var/www/data -it ghcr.io/offspot/wikifundi-en

For french version :

docker run -p 80:80 -v ${PWD}/data-init:/var/www/data -it ghcr.io/offspot/wikifundi-fr

Go to http://localhost/

Default admin logging :

Mirroring with WikiFundi

You can lauch mirroring by changing environments variables MIRRORING :

docker run -p 80:80 -e MIRRORING=1 -v ${PWD}/data:/var/www/data -it ghcr.io/offspot/wikifundi-en

You can also change options script with MIRRORING_OPTIONS :

Examples :

After mirroring, you can generate tarball by going http://localhost/export_data.php. A README file is in this tarball to explain an installation without Docker.

Other options

Build your Docker image

The WikiFundi image extends the openzim/mediawiki Docker image to allow mirroring a existing wiki (by example Wikipedia) and use this wiki offline.

The config files are located in config directory.

This directory contain the configuration of :

You can also customize your logo in assets/images as customize the assets/docs/README embeded with data

To build and run :

docker build -t wikifundi_en wikifundi_en 
docker run -p 80:80 -v ${PWD}/data:/var/www/data -it wikifundi_en

As french version, yon can extend ghcr.io/offspot/wikifundi-en to create an image for other Wikipedia language or other wiki.

Managing Wikifundi with Sloppy hosting

You can use ./install_sloppy_cli.sh to install Sloppy CLI. We must define SLOPPY_TOKEN environnement variable with your token. Then, we can us wikifundi_management.sh to manage Wikifundi :