Migrate Forgejo from Homebrew to source build (#316)
## Summary - Migrate Forgejo from Homebrew to source-built binary with mcquack LaunchAgent - Matches the established pattern used by zot, caddy, and alloy - Upgrades to v14.0.3 (7 security fixes: PKCE bypass, OAuth scope bypass, open redirect, and more) ## Changes - **Ansible role**: Replace brew install/services with binary stat check + LaunchAgent - **Paths**: `/opt/homebrew/var/forgejo` → `~/forgejo`, binary at `~/code/3rd/forgejo/forgejo` - **Run user**: `forgejo` → `erichblume` (LaunchAgent user; SSH git user stays `forgejo`) - **Docs**: Updated Forgejo reference card, restart-indri guide - **Service review**: Stamped frigate-notify, cloudnative-pg, blumeops-pg as current ## One-time migration steps (manual, on indri) 1. Clone from Codeberg, add forge mirror remote 2. Check out v14.0.3, build with `make build && make forgejo` 3. Stop brew, `cp -a` data to `~/forgejo`, fix ownership 4. Run `provision-indri --tags forgejo` 5. Verify, then `brew uninstall forgejo` ## Data safety - `cp -a` preserves everything (repos, SQLite DB, LFS, sessions, OAuth config) - Brew version stays installed as rollback until verification passes - No schema changes between 14.0.2 → 14.0.3 Reviewed-on: #316
This commit is contained in:
parent
3cb4303a54
commit
3017f759a7
8 changed files with 124 additions and 26 deletions
|
|
@ -37,10 +37,8 @@ ssh indri 'minikube status'
|
|||
Native services managed by launchd will stop automatically during macOS shutdown. However, if you want to stop them explicitly first:
|
||||
|
||||
```bash
|
||||
# Forgejo (managed by brew services)
|
||||
ssh indri 'brew services stop forgejo'
|
||||
|
||||
# LaunchAgent services
|
||||
ssh indri 'launchctl unload ~/Library/LaunchAgents/mcquack.eblume.forgejo.plist'
|
||||
ssh indri 'launchctl unload ~/Library/LaunchAgents/mcquack.eblume.caddy.plist'
|
||||
ssh indri 'launchctl unload ~/Library/LaunchAgents/mcquack.eblume.zot.plist'
|
||||
ssh indri 'launchctl unload ~/Library/LaunchAgents/mcquack.jellyfin.plist'
|
||||
|
|
@ -68,7 +66,7 @@ Or if you're at the console, use the Apple menu.
|
|||
|
||||
After indri boots, most services recover automatically. Only a few things need manual attention.
|
||||
|
||||
**What autostarts:** Docker Desktop, brew services (Forgejo), and all mcquack LaunchAgent services (Caddy, Zot, Jellyfin, Alloy, Borgmatic, metrics collectors).
|
||||
**What autostarts:** Docker Desktop and all mcquack LaunchAgent services (Forgejo, Caddy, Zot, Jellyfin, Alloy, Borgmatic, metrics collectors).
|
||||
|
||||
**What needs manual action:** Amphetamine, AutoMounter, and minikube (including its Tailscale serve port).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue