pkg-mirror-apt: local apt mirror/cache for project packages only #160

Closed
opened 2026-03-24 03:54:38 +00:00 by kert · 0 comments
Owner

Goal

Deploy an apt-cacher-ng (or apt-mirror) container that caches only the apt packages listed in data/pkg-manifest.json.

Scope

  • Add service to compose.yml (e.g. apt-cache)
  • Seed/warm cache from manifest on first run
  • Configure all Dockerfiles to use the local mirror via http://apt-cache:3142
  • Mirror stores only packages we actually install (no full repo sync)
  • Volume-backed so cache survives restarts

Acceptance

  • docker compose up apt-cache starts the mirror
  • Dockerfile builds pull from local mirror, not internet
  • Cache contains exactly the packages in the manifest (verify with apt-cache stats or similar)
## Goal Deploy an apt-cacher-ng (or apt-mirror) container that caches only the apt packages listed in `data/pkg-manifest.json`. ## Scope - Add service to compose.yml (e.g. `apt-cache`) - Seed/warm cache from manifest on first run - Configure all Dockerfiles to use the local mirror via `http://apt-cache:3142` - Mirror stores only packages we actually install (no full repo sync) - Volume-backed so cache survives restarts ## Acceptance - [ ] `docker compose up apt-cache` starts the mirror - [ ] Dockerfile builds pull from local mirror, not internet - [ ] Cache contains exactly the packages in the manifest (verify with apt-cache stats or similar)
kert added this to the P21: Package Supply Chain — inventory, mirrors, drift, vuln scanning milestone 2026-03-24 03:54:38 +00:00
kert added the infraci labels 2026-03-24 03:54:38 +00:00
kert closed this issue 2026-03-24 04:34:59 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: homelab/stack#160