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 run update_db
Otherwise, you can start the containers directly:
docker-compose --profile test up
or:
docker-compose --profile production up -d
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
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.