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

Improve multi-arch build + documentation #990

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

rafaelgaspar
Copy link

@rafaelgaspar rafaelgaspar commented Sep 12, 2022

Summary

In order to make #947 easier, this change makes use golang native cross-compilation making image building when build for both AMD64 and ARM64 around 5-6x faster.

Motivation

I'm also depending on issue #947 resolved, and I'm at your disposal for any help that I can provide.

Test plan

I'm still conducting internal testing of this.

Rollout/monitoring/revert plan

This should have no impact on AMD64 images, but ARM64 still requires more testing, but I don't think that should be a blocker on release.

The command used to build the images needs to be updated, but could not find it anywhere in code, so I'm assuming you are doing this manually on release, in that case please use the updated command in the public-docker-images/README.md file but replacing --output=type=docker with --push.

@CLAassistant
Copy link

CLAassistant commented Sep 12, 2022

CLA assistant check
All committers have signed the CLA.

@rafaelgaspar rafaelgaspar force-pushed the multiarch-improvements branch 2 times, most recently from aaea764 to 1461507 Compare September 13, 2022 15:29
@arnavdugar-stripe arnavdugar-stripe self-assigned this Sep 14, 2022
@arnavdugar-stripe
Copy link
Contributor

This change LGTM, not sure why CircleCI is failing, I'm looking into that. Thanks!

@rafaelgaspar
Copy link
Author

Updated docs to include both single arch and multi-arch commands since most people building this locally would still prefer to just build for their current architecture.

Let me know if the linting on CHANGELOG.md and README.md are a problem and I can revert them.

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

Successfully merging this pull request may close these issues.

3 participants