Skip to content

Conversation

@sebsoto
Copy link

@sebsoto sebsoto commented Dec 10, 2025

What type of PR is this?

/kind feature

What this PR does / why we need it:

Add basic functionality to build Windows images

Enables committing a Windows base image as the final layer.
This gives the possibility of building a Windows container image on a
Linux build system. Only COPY and ADD are in scope. This allows the
workflow of cross compiling Windows binaries on Linux, and copying them
into a Windows container image for use on Windows systems.

How to verify it

Which issue(s) this PR fixes:

Fixes #4010

Special notes for your reviewer:

Does this PR introduce a user-facing change?


@openshift-ci openshift-ci bot added do-not-merge/work-in-progress kind/feature Categorizes issue or PR as related to a new feature. labels Dec 10, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 10, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sebsoto
Once this PR has been reviewed and has the lgtm label, please assign mtrmac for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Adds layerWriter, a struct meant to encapsulate the Writer pipeline for
writing a container layers to disk. This is a refactor meant to reduce
the code complexity of containerImageRef.NewImageSource().

Signed-off-by: Sebastian Soto <ssoto@redhat.com>
@sebsoto sebsoto force-pushed the windowsWork branch 5 times, most recently from 9c4aa2c to 0d130f7 Compare December 13, 2025 13:17
Enables committing a Windows base image as the final layer.
This gives the possibility of building a Windows container image on a
Linux build system. Only COPY and ADD are in scope. This allows the
workflow of cross compiling Windows binaries on Linux, and copying them
into a Windows container image for use on Windows systems.

Signed-off-by: Sebastian Soto <ssoto@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress kind/feature Categorizes issue or PR as related to a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Building Windows container images

1 participant