sealerio / sealer

Build, Share and Run Both Your Kubernetes Cluster and Distributed Applications (Project under CNCF)
http://sealer.cool
Apache License 2.0
2.06k stars 362 forks source link

feat: sealer build supports lite mode option #2251

Closed kakaZhou719 closed 1 year ago

kakaZhou719 commented 1 year ago

Describe what this PR does / why we need it

In some case, some applications do not need to store additional container images. it is faster and smaller.

so, at build stage, sealer could try to skip download container image through build mode option.

if it is lite, will skip download container image. default value is all, means download all container image.

how to use:

sealer build -t abc:v1 --build-mode=lite
sealer build -t abc:v1 --build-mode=lite --platform linux/arm64
sealer build -t abc:v1 --build-mode=lite --platform linux/amd64,linux/arm64

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage has no change and project coverage change: -6.77 :warning:

Comparison is base (ad8336d) 20.51% compared to head (a8628c3) 13.74%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2251 +/- ## ========================================== - Coverage 20.51% 13.74% -6.77% ========================================== Files 96 260 +164 Lines 9117 22619 +13502 ========================================== + Hits 1870 3110 +1240 - Misses 6991 19097 +12106 - Partials 256 412 +156 ``` | Flag | Coverage Δ | | |---|---|---| | e2e-tests | `9.18% <ø> (?)` | | | unit-tests | `20.51% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sealerio#carryforward-flags-in-the-pull-request-comment) to find out more. [see 164 files with indirect coverage changes](https://app.codecov.io/gh/sealerio/sealer/pull/2251/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sealerio)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.