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

Build entrypoint image for Windows #4260

Merged
merged 1 commit into from
Oct 12, 2021
Merged

Conversation

imjasonh
Copy link
Member

@imjasonh imjasonh commented Sep 26, 2021

#1826
/kind feature

Changes

Uses plumbing's cmd/combine to build a combined distroless-and-Windows multi-arch base image, then uses that image as the base image for the entrypoint image so that it can be built for Windows.

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • [n] Docs included if any changes are user facing
  • [n] Tests included if any functionality added or changed
  • [y] Follows the commit message standard
  • [y] Meets the Tekton contributor standards (including
    functionality, content, code)
  • [y] Release notes block below has been filled in or deleted (only if no user facing changes)

Release Notes

The entrypoint multi-arch image now includes an image built for Windows, allowing TaskRuns to execute on Windows nodes.

@imjasonh imjasonh requested a review from vdemeester September 26, 2021 11:51
@tekton-robot tekton-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. labels Sep 26, 2021
@tekton-robot tekton-robot requested review from dibyom and a user September 26, 2021 11:51
@tekton-robot tekton-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 26, 2021
@jerop jerop added this to the Pipelines v0.30 milestone Oct 11, 2021
@jerop
Copy link
Member

jerop commented Oct 11, 2021

@DrWadsy requested that we add this to the next milestone (cc @tektoncd/core-maintainers)

@ghost
Copy link

ghost commented Oct 12, 2021

Is this PR still WIP or ready for review now @imjasonh ?

@imjasonh
Copy link
Member Author

Still need this to be able to build for Windows, but it's still not ready. I'll try to find time to make progress, if someone else wants to pick it up I won't argue.

@imjasonh imjasonh marked this pull request as draft October 12, 2021 13:29
@imjasonh
Copy link
Member Author

This is now blocked on picking up tektoncd/plumbing#901, it should be good to test after that PR is merged and this PR picks it up.

This uses the cmd/combine tool in the plumbing repo to build a combined
base image from distroless and Windows, which cmd/entrypoint will build
on.
@imjasonh imjasonh marked this pull request as ready for review October 12, 2021 14:55
@imjasonh imjasonh changed the title WIP: build entrypoint image for Windows Build entrypoint image for Windows Oct 12, 2021
@tekton-robot tekton-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 12, 2021
@imjasonh
Copy link
Member Author

Test failures appear to be unrelated flakes

/test pull-tekton-pipeline-integration-tests
/test pull-tekton-pipeline-alpha-integration-tests

@imjasonh
Copy link
Member Author

read tcp 10.0.1.10:42064->104.18.124.25:443: read: connection reset by peer

/test pull-tekton-pipeline-alpha-integration-tests

Copy link
Member

@afrittoli afrittoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, exciting!
/approve

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: afrittoli

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

The pull request process is described 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

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 12, 2021
# Combine Distroless with a Windows base image, used for the entrypoint image.
COMBINED_BASE_IMAGE=$(go run ./vendor/github.com/tektoncd/plumbing/cmd/combine/main.go \
gcr.io/distroless/base:debug-nonroot \
mcr.microsoft.com/windows/nanoserver:1809 \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps a comment on the 1809 tag?

@dlorenc
Copy link
Contributor

dlorenc commented Oct 12, 2021

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 12, 2021
@tekton-robot tekton-robot merged commit 95b8c71 into tektoncd:main Oct 12, 2021
imjasonh added a commit to imjasonh/pipeline that referenced this pull request Oct 13, 2021
Previously, create-ko-yaml didn't need to be run in ${PROJECT_ROOT}, but
after tektoncd#4260 it tries to `go run` something assuming it's in
${PROJECT_ROOT}, which fails unless we `cd` into that directory.
@imjasonh imjasonh mentioned this pull request Oct 13, 2021
3 tasks
tekton-robot pushed a commit that referenced this pull request Oct 13, 2021
Previously, create-ko-yaml didn't need to be run in ${PROJECT_ROOT}, but
after #4260 it tries to `go run` something assuming it's in
${PROJECT_ROOT}, which fails unless we `cd` into that directory.
chenbh pushed a commit to chenbh/pipeline that referenced this pull request Oct 27, 2021
Previously, create-ko-yaml didn't need to be run in ${PROJECT_ROOT}, but
after tektoncd#4260 it tries to `go run` something assuming it's in
${PROJECT_ROOT}, which fails unless we `cd` into that directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants