Skip to content

Building and publishing Windows images #3951

@aiden-deloryn

Description

@aiden-deloryn

Currently Ko is not able to build images for Windows (see ko-build/ko#361) and adding support for this is potentially a complicated problem to solve. In the interest of progressing development on Windows support for Tekton, I think it would be beneficial to investigate alternatives for building and publishing Windows images until this functionality is supported by Ko.

A possible workaround would be to build images using Docker. I have an example of a Dockerfile for the entrypoint binary which I have been using for testing here: https://github.com/TensorWorks/pipeline/blob/7286fc699d4585ecbf87eedc9e00688f7b0daf5c/images/windows/entrypoint/Dockerfile

Some pros:

  • This does not impact the current workflow for Linux development
  • Dockerfiles are easy to read and understand

Some cons:

  • Building Windows images will depend on Docker and a Windows host machine
  • There would be some additional upkeep required to maintain Windows images

I'm keen to get some feedback on this approach and also encourage others to share ideas if you think there might be a better alternative.

Related TEP: tektoncd/community#383
Related Issue: #1826

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/miscCategorizes issue or PR as a miscellaneuous one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions