banger/scripts
Thales Maciel d22d05555c
scripts: bundle-based golden image pipeline
Replaces the OCI-push flow with a bundle-based one that mirrors the
kernel catalog (publish-kernel.sh / kernelcat).

- scripts/make-golden-bundle.sh: docker build → docker create → docker
  export | banger internal make-bundle → .tar.zst. Defaults target
  debian-bookworm / generic-6.12 / x86_64; pinned --size 4G to leave
  headroom for first-boot installs and in-VM apt use.
- scripts/publish-golden-image.sh: rewritten to call make-golden-bundle,
  rclone upload to R2 (banger-images bucket, images.thaloco.com), and
  jq-patch internal/imagecat/catalog.json with URL / sha256 / size.
  --skip-upload stops after bundle build and copies to dist/.

make-bundle default ext4 sizing also bumped from +25% to +50% headroom
(mkfs.ext4 needs room for inode tables, block-group metadata, journal,
and the default 5% reserved-blocks margin). The old 25% was too tight
for the ~950 MB golden rootfs and aborted with "Could not allocate
block".

End-to-end smoke (local): golden Dockerfile → 286 MB tar.zst bundle
with correct manifest, valid ext4, and all banger units + vsock agent
present.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 15:38:04 -03:00
..
bench-create.sh Reorganize the source checkout layout 2026-03-21 17:22:57 -03:00
customize.sh Install claude and pi through mise 2026-04-13 18:29:02 -03:00
interactive.sh Add an experimental Alpine image flow 2026-03-21 20:25:55 -03:00
make-alpine-kernel.sh Add an experimental Alpine image flow 2026-03-21 20:25:55 -03:00
make-generic-kernel.sh Generic kernel + init= boot path for OCI-pulled images 2026-04-16 20:12:56 -03:00
make-golden-bundle.sh scripts: bundle-based golden image pipeline 2026-04-17 15:38:04 -03:00
make-rootfs-alpine.sh Wait for real guest vsock health before opencode 2026-03-21 21:14:22 -03:00
make-rootfs-void.sh Install claude and pi through mise 2026-04-13 18:29:02 -03:00
make-rootfs.sh Remove runtime-bundle image dependencies 2026-03-21 18:34:53 -03:00
make-void-kernel.sh Fix void-kernel output directory setup 2026-04-01 19:42:30 -03:00
publish-golden-image.sh scripts: bundle-based golden image pipeline 2026-04-17 15:38:04 -03:00
publish-kernel.sh Phase 5: kernel catalog publish flow + docs 2026-04-16 15:56:56 -03:00
register-alpine-image.sh Phase 3: banger kernel import bridges make-*-kernel.sh output 2026-04-16 14:53:49 -03:00
register-void-image.sh Phase 3: banger kernel import bridges make-*-kernel.sh output 2026-04-16 14:53:49 -03:00
verify.sh Rename experimental Void image to void 2026-04-01 20:15:28 -03:00