Skip to content

feat: add layer size summary from manifest#20

Open
blackknight86 wants to merge 1 commit into
goodwithtech:use_containersfrom
blackknight86:feat-calc-imgsz
Open

feat: add layer size summary from manifest#20
blackknight86 wants to merge 1 commit into
goodwithtech:use_containersfrom
blackknight86:feat-calc-imgsz

Conversation

@blackknight86
Copy link
Copy Markdown

@blackknight86 blackknight86 commented May 11, 2026

What does this PR do?

Adds calculation of total compressed layer size from the Docker image manifest to introduce a new Dockle check to validate image size limits.

The new check will be PR'ed to Dockle after this one approved.

Why?

Prevents oversized images by allowing users to set size budgets in their security pipeline. In case of security smaller images have smaller attack surface.

Changes

  • feat: parse manifest, sum size fields of all layers, add this value to /config file provided by deckoder

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