infra/forgejo: add resource limits and a leaner CI job image #38
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Jinemi/thermograph#38
Loading…
Reference in a new issue
No description provided.
Delete branch "infra/forgejo-reliability-ci-perf"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
resources.limitsto Forgejo'sdb/forgejoSwarm services (docker-stack.yml had none, unlike the app stack) — generous defaults, several times observed steady-state usage, overridable viaFORGEJO_DB_CPUS/FORGEJO_DB_MEMORY/FORGEJO_CPUS/FORGEJO_MEMORY.infra/deploy/forgejo/ci-runner/Dockerfile: a slim Debian base withdocker-ce-cli+docker-buildx-pluginpreinstalled, meant to replace thenode:20-bookwormjob image mostdocker-labeled workflows run in. Node is dead weight now (frontend is Go); the current per-jobapt-get install docker.ioalso pulls in the classic Docker builder, which has aCOPY --chowngroup-resolution bug BuildKit doesn't have.Status
docker stack deployon the manager after merge.write:package-scoped PAT that can't be self-provisioned. Not wired into the live runner orregister-lan-runner.shyet; see the new README section for the cutover sequence.Test plan
docker-stack.ymlparses as valid YAMLci-runnerimage builds anddocker --version && docker buildx version && git --version && python3 -c "import yaml"all succeed locallydocker stack deploy, confirm both services stay1/1and reachable