26 lines
No EOL
1,007 B
Markdown
26 lines
No EOL
1,007 B
Markdown
# Bonfire gitbot + boot (2026-07-11)
|
|
|
|
After `2026/2026-07-09--bonfire-ground-zero.md`.
|
|
|
|
## Problems
|
|
|
|
- Bare hostnames in commit text crash `createPost` (`URI.parse/1`).
|
|
- No webhook; bot polls git.ngi-0.eu every 300s.
|
|
- Stack did not start on boot.
|
|
|
|
## Fix
|
|
|
|
- `gitbot-mirror.py`: prefix bare hosts, fallback post, skip after 3 fails.
|
|
- User systemd: `gitbot-mirror.service`, `container-koopa-bonfire-*.service` (`podman-compose up -d`).
|
|
- Install: `scripts/bonfire/install-systemd.sh`
|
|
|
|
**Official:** [Hosting guide](https://docs.bonfirenetworks.org/deploy.html) recommends Co-op Cloud; we run podman-compose on koopa (ops choice, not upstream path).
|
|
GraphQL `createPost`: [API reference](https://docs.bonfirenetworks.org/api-reference.html) — no official gitbot mirror doc; custom script.
|
|
|
|
## Ops
|
|
|
|
```bash
|
|
systemctl --user status container-koopa-bonfire-db.service container-koopa-bonfire.service gitbot-mirror.service
|
|
tail -30 ~/koopa-bonfire/gitbot.log
|
|
python3 ~/koopa-bonfire/bin/gitbot-mirror.py
|
|
``` |