Skip to content

Feat/analyze image bloat - #39

Merged
ahze merged 4 commits into
mainfrom
feat/analyze-image-bloat
Oct 6, 2026
Merged

ahze merged 4 commits into
mainfrom
feat/analyze-image-bloat

Conversation

@ahze

@ahze ahze commented Oct 6, 2026

Copy link
Copy Markdown
Member

No description provided.

ahze added 4 commits October 6, 2026 16:13
- Add `dbuild analyze` (alias `audit`) to inspect container images for layer
  size distribution, large layers, and "zombie cleanup" layers (standalone
  RUN rm/pkg clean instructions that fail to reclaim parent layer space).
- Run lightweight in-container rootfs probe using standard FreeBSD base utilities
  to audit leftover build toolchains/compilers (llvm, gcc, rust, go, cmake),
  static library archives (*.a), development headers (/usr/local/include),
  documentation/manuals, and leftover package caches.
- Provide actionable optimization recommendations and potential recoverable space.
- Support `--json` output with suppressed log statements for clean piping to jq/CI.
- Add Containerfile lint rules to warn on uncleaned `pkg install` and standalone
  cleanup layers.
- Add full unit test suite (15 new tests in test_analyze.py and 3 in test_lint.py)
  and update man page.
@ahze
ahze merged commit 03360e6 into main Oct 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant