Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recipe to calculate image size #1088

Merged
merged 2 commits into from
Jul 30, 2021
Merged

Conversation

imjasonh
Copy link
Collaborator

$ crane manifest gcr.io/buildpacks/builder:v1 | jq '.config.size + ([.layers[].size] | add)'
238034322
$ crane manifest gcr.io/buildpacks/builder:v1 | jq '.config.size + ([.layers[].size] | add)' | numfmt --to=iec
228M

@codecov-commenter
Copy link

codecov-commenter commented Jul 26, 2021

Codecov Report

Merging #1088 (8e9e796) into main (2f6fbf7) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1088   +/-   ##
=======================================
  Coverage   75.46%   75.46%           
=======================================
  Files         107      107           
  Lines        5124     5124           
=======================================
  Hits         3867     3867           
  Misses        709      709           
  Partials      548      548           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f6fbf7...8e9e796. Read the comment docs.

@jonjohnsonjr
Copy link
Collaborator

This won't work for an index, how should we handle that?

@jonjohnsonjr jonjohnsonjr merged commit 4759a5d into google:main Jul 30, 2021
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.

None yet

3 participants