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

[ci] Enabled staged builds for container images #3830

Open
2 tasks done
nabokihms opened this issue Feb 10, 2023 · 4 comments
Open
2 tasks done

[ci] Enabled staged builds for container images #3830

nabokihms opened this issue Feb 10, 2023 · 4 comments
Labels
area/cicd Pull requests that update cii source/deckhouse-team Issue created by Deckhouse team type/enhancement type/good-first-issue

Comments

@nabokihms
Copy link
Member

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Use case. Why is this important?

werf.io is a primary tool for building images for Deckhouse. For Docker files, it always merges all layers into a single final layer and saves it to the registry.

Caching stages and rebuilding images partially is impossible with this approach. Yet, a great feature is available in werf to preserve layers, which should be enabled manually. We hope that enabling this feature will drastically reduce used space in the registry and the time of rebuilds.

Proposed Solution

The example of werf.yaml with the feature enabled.

configVersion: 1
project: x
---
image: x
dockerfile: ./Dockerfile
staged: true

Additional Information

⚠️ CAUTION!⚠️

  • Container images will be rebuilt.
  • More tags in the registry.
  • Less space consumption.
@nabokihms nabokihms added type/enhancement status/needs-triage Issues or PRs awaiting triage. labels Feb 10, 2023
@nabokihms
Copy link
Member Author

werf/werf#2215

@EvgenySamoylov EvgenySamoylov added status/on-hold source/deckhouse-team Issue created by Deckhouse team priority/backlog Issues that have the least priority and removed status/needs-triage Issues or PRs awaiting triage. labels Feb 15, 2023
@deckhouse-BOaTswain
Copy link
Collaborator

This issue has been automatically put in the triage queue because it has not had
recent activity. The team will reconsider the status of this issue. Thank you
for your contributions.

@deckhouse-BOaTswain deckhouse-BOaTswain added the status/needs-triage Issues or PRs awaiting triage. label Jun 19, 2023
@konstantin-axenov konstantin-axenov removed the status/needs-triage Issues or PRs awaiting triage. label Jun 22, 2023
@konstantin-axenov
Copy link
Member

Feature is ready in werf.

@konstantin-axenov konstantin-axenov added area/cicd Pull requests that update cii and removed status/on-hold priority/backlog Issues that have the least priority labels Jun 22, 2023
@yuriygoryaev yuriygoryaev self-assigned this Aug 28, 2023
@vitaliy-sn
Copy link
Member

We need runners with Buildah.

│ │ common/distroless/stage/apk_extractor/WORKDIR  Staged build of Dockerfile is not available for Docker Server backend.Please  ↵
either:
│ │ common/distroless/stage/apk_extractor/WORKDIR   * switch to Buildah backend;
│ │ common/distroless/stage/apk_extractor/WORKDIR   * or disable staged build by setting `staged: false` for the image in the    ↵
│ │ common/distroless/stage/apk_extractor/WORKDIR  werf.yaml.
│ │ common/distroless/stage/apk_extractor/WORKDIR  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cicd Pull requests that update cii source/deckhouse-team Issue created by Deckhouse team type/enhancement type/good-first-issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants