2024-01-08 13:54:25 +00:00
|
|
|
# Updating mediawiki docker container
|
|
|
|
|
|
|
|
See the [mediawiki-oidc-docker repository](https://git.pub.solar/pub-solar/mediawiki-oidc-docker#updating-the-docker-image)
|
|
|
|
for instructions on updating our customized mediawiki docker image.
|
|
|
|
|
|
|
|
To deploy a new docker image to `nachtigall`, first bump the mediawiki version
|
2024-07-15 16:51:15 +00:00
|
|
|
of the docker image tag in `modules/mediawiki/default.nix` (search for
|
2024-01-08 13:54:25 +00:00
|
|
|
`image`).
|
|
|
|
|
|
|
|
Next, push your changes to https://git.pub.solar and get them reviewed and
|
|
|
|
approved.
|
|
|
|
|
|
|
|
After approval, create a fresh backup of the database and deploy the changes to
|
2024-06-10 18:26:20 +00:00
|
|
|
`nachtigall`. Run the following after [SSH'ing to `nachtigall`](./administrative-access.md#ssh-access):
|
2024-01-08 13:54:25 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
sudo -u postgres pg_dump --create -Fc mediawiki > mediawiki-db-$(date +%F).dump
|
|
|
|
exit
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
2024-07-15 16:51:15 +00:00
|
|
|
deploy --targets '.#nachtigall' --magic-rollback false --auto-rollback false --keep-result --result-path ./results
|
2024-01-08 13:54:25 +00:00
|
|
|
```
|
|
|
|
|
2024-06-10 18:26:20 +00:00
|
|
|
Then, finalize the update by running the database migration script (in a [SSH](./administrative-access.md#ssh-access) shell on `nachtigall`):
|
2024-05-08 20:57:07 +00:00
|
|
|
|
2024-01-08 13:54:25 +00:00
|
|
|
```
|
|
|
|
docker exec -it mediawiki bash
|
|
|
|
php maintenance/run.php update.php
|
|
|
|
```
|