Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 1.25 KB

README.md

File metadata and controls

71 lines (47 loc) · 1.25 KB

Setup and Installation

Clone the repository:

git clone https://github.com/SaillantNicolas/cgalmediawiki.git
cd cgalmediawiki

Copy a dump of the database in db-init/.

Then build and start the Docker containers:

If the dump of the database is from a Mediawiki version older than 1.31, you need to update the database schema:

docker-compose --profile update_db run update_db

If you are updating the database schema for wiki editors, use the following command instead:

docker-compose --profile update_db run update_db_editors

Otherwise, you can start the containers directly:

docker-compose --profile test up

or:

docker-compose --profile production up -d

To run directly into podman

system podman

Start the podman.socket unit with systemctl.

Then:

export DOCKER_HOST=unix:///run/podman/podman.sock
export CONTAINER_HOST=unix:///run/podman/podman.sock

or:

source ./system-podman.env

rootless podman

Or, using the rootless user podman:

export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock
export CONTAINER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock

or:

source ./user-podman.env

Then, you can run the commands as usual.