rd13_media_wiki/README.md

84 lines
2.5 KiB
Markdown
Raw Permalink Normal View History

2022-03-12 16:38:10 +01:00
# Install Instructions
2020-12-28 15:47:52 +01:00
2022-03-12 16:38:10 +01:00
```
2021-07-26 13:06:05 +02:00
$ sudo docker-compose up -d
2022-03-12 16:38:10 +01:00
```
2021-07-26 13:06:05 +02:00
## CI/CD
Dieses Repo nutzt **Woodpecker CI** (via `.woodpecker.yml`) für automatische Docker-Builds.
| Event | Aktion |
|---|---|
| Push auf `main` | Build + Push → `192.168.178.6:8083/cschulz/rd13_media_wiki:latest` |
| Pull Request auf `main` | Build only (dry-run, kein Push) |
**Forgejo Actions ist deaktiviert** (`[actions] ENABLED = false` in `app.ini`).
Der "waiting"-Status im Forgejo-Actions-Tab kann ignoriert werden Woodpecker übernimmt alle CI-Aufgaben.
Benötigte Woodpecker-Secrets:
- `RD13_MW_DOCKER_BUILD_TOKEN` Forgejo Access Token mit `write:packages` Scope
2021-07-26 13:06:05 +02:00
## Setup and use our own Tile Server
This is needed to use maps in extensions.
Dieses Repo ist auf einen externen Martin Tile Server ausgelegt.
### Voraussetzung
- Martin ist erreichbar (z. B. https://tiles.rd13server.de)
2026-06-15 18:03:20 +00:00
- tileserver-gl liefert gerenderte Raster-Styles unter /styles/<style_id>
- Der Proxy routet /styles/osm-intl, /styles/world, /styles/europa-detail und /styles/satelite-world an tileserver-gl.
### LocalSettings Konfiguration
In LocalSettings.php:
```php
wfLoadExtension( 'Kartographer' );
$wgKartographerMapServer = 'https://tiles.rd13server.de/styles';
$wgKartographerStyles = [
2026-06-15 18:03:20 +00:00
'world',
'europa-detail',
'satelite-world',
'osm-intl',
];
2026-06-15 18:03:20 +00:00
$wgKartographerDfltStyle = 'world';
$wgKartographerSrcsetScales = [ 1 ];
2022-03-12 16:38:10 +01:00
```
2026-06-15 18:03:20 +00:00
Kartographer baut daraus URLs wie `https://tiles.rd13server.de/styles/world/{z}/{x}/{y}.png`.
Beispiel fuer einen anderen Stil auf derselben Seite:
```wiki
<mapframe mapstyle="europa-detail" text="Detailkarte" zoom="12" latitude="48.137" longitude="11.576" width="420" height="300" />
```
### Schnelltest im Wiki
```wiki
<mapframe text="Muenchen" zoom="12" latitude="48.137" longitude="11.576" width="420" height="300" />
2022-03-12 16:38:10 +01:00
```
2022-09-02 14:59:08 +02:00
# Update of Media Wiki
2022-03-12 16:38:10 +01:00
2022-09-02 14:59:08 +02:00
## Update of the MediaWiki Core
Um ein neues Docker-Image mit der neusten Version zu bauen, kann man entweder einen neuen Commit auf `main` pushen (Woodpecker CI baut und pushed das Image automatisch), oder den Build-Workflow händisch in Woodpecker über die UI auslösen.
2022-03-12 16:38:10 +01:00
Nach dem das neue Images gebaut ist, kann es mit gepulled und gestartet werden.
Hierfür kann man folgende Kommandos nehmen.
```
$ sudo docker-compose down
$ sudo docker-compose pull
$ sudo docker-compose up -d
```
2022-09-02 14:59:08 +02:00
2023-05-15 09:19:52 +02:00
Tried to update to 1.39 from 1.35.5 did not work. Maybe a step by step update is needed now from 1.35.9
2022-09-02 14:59:08 +02:00
## Update of Plugins
This is in the best case done with composer.
### How to bring Plugins into the composer workflow