pkg-mirror-apk: local apk mirror for Alpine packages only #161

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

Goal

Mirror the small set of Alpine packages used (currently only apk upgrade in docs nginx stage) so Alpine builds never reach the internet.

Scope

  • Add lightweight apk mirror service or use a generic proxy (e.g. Sonatype Nexus apk proxy, or a simple nginx mirror)
  • Seed from data/pkg-manifest.json apk section
  • Configure docs Dockerfile to use local mirror via /etc/apk/repositories
  • If no apk packages are explicitly installed (only apk upgrade), mirror the base packages for the alpine version in use

Acceptance

  • Alpine-based builds use local mirror
  • No external apk fetches during build (verify with network isolation test)
## Goal Mirror the small set of Alpine packages used (currently only `apk upgrade` in docs nginx stage) so Alpine builds never reach the internet. ## Scope - Add lightweight apk mirror service or use a generic proxy (e.g. Sonatype Nexus apk proxy, or a simple nginx mirror) - Seed from `data/pkg-manifest.json` apk section - Configure docs Dockerfile to use local mirror via `/etc/apk/repositories` - If no apk packages are explicitly installed (only `apk upgrade`), mirror the base packages for the alpine version in use ## Acceptance - [ ] Alpine-based builds use local mirror - [ ] No external apk fetches during build (verify with network isolation test)
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#161