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

[release-1.2] Build and push multi-arch/os (amazon and windows, no debian) image manifest via Make rules #1062

Merged
merged 1 commit into from
Sep 16, 2021

Conversation

wongma7
Copy link
Contributor

@wongma7 wongma7 commented Sep 15, 2021

Is this a bug fix or adding new feature?

What is this PR about? / Why do we need it? cherry-pick of #957 on to release-1.2 branch

The main motivation is to mitigate the slow builds in this branch #1048 . Building amazonlinux + windows manifest using this Makefile is faster than building amazonlinux + debian manifest using the old Makefile I suspect because the old one wastes a lot of time doing multi-platform binary builds while virtualizing the platforms whereas this one leverages --platform=$BUILDPLATFORM and GOOS to multi-platform binaries on x86.

What testing is done? I will check after this merges if the release-1.2 branch prow build finishes within an hour or not.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 15, 2021
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 15, 2021
Copy link

@nckturner nckturner left a comment

Choose a reason for hiding this comment

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

I think getting rid of debian makes sense -- also is there anything holding us back from using a minimal/distroless image?

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nckturner, wongma7

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

@nckturner
Copy link

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 16, 2021
@wongma7
Copy link
Contributor Author

wongma7 commented Sep 16, 2021

@nckturner we rely on stuff like mkfs.ext4 and such and so we just install those using yum + amazonlinux base image. something like this https://github.com/aws/eks-distro-build-tooling where the minimum binaries/libs are copied from an amazonlinux base image in to a distroless image is possible but requires some effort.

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants