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

How to use this images as base image on a windows host #11

Closed
jkroepke opened this issue May 19, 2024 · 5 comments
Closed

How to use this images as base image on a windows host #11

jkroepke opened this issue May 19, 2024 · 5 comments

Comments

@jkroepke
Copy link

Hi,

I would like to know, how I can use this image as base image and build containers on a Windows host system? I would like to run e2e test and docker build on the same machine.

Currently, this images requires buildkit, but buildkit doesn't work on Windows yet.

@jsturtevant
Copy link
Contributor

This image can only be used with HostProcess Containers. It will not work with process isolated containers like windows server core or nano server.

Buildkit does have some early support for windows: microsoft/Windows-Containers#34 (comment).

What e2e tests are you trying to run?

@jkroepke
Copy link
Author

jkroepke commented May 20, 2024

What e2e tests are you trying to run?

On my CI, I have 3 three jobs:

Build application, test application, package application. All three steps running on a Windows host.

The application I would like to build is an go application and must run as HostProcess container.

Currently, I'm building typical nanoserver based image with docker build on that same Windows machine where I run the build and test before.

Now, I would like to the change the base image from nanoserver to the host process images, but currently I'm unable to do that on a Windows host.

@jkroepke
Copy link
Author

Buildkit does have some early support for windows: microsoft/Windows-Containers#34 (comment).

And there an example action - https://github.com/microsoft/Windows-Containers/pull/497/files

Great, I will test that.

@jkroepke
Copy link
Author

Works, thanks

@jkroepke
Copy link
Author

FYI: I finally implement this in our CI, however it does not. Windows hccshim throws unknown error on push step

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

No branches or pull requests

2 participants