Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Improve multi-arch build + documentation#990

Open
rafaelgaspar wants to merge 8 commits into
stripe:masterfrom
rafaelgaspar:multiarch-improvements
Open

Improve multi-arch build + documentation#990
rafaelgaspar wants to merge 8 commits into
stripe:masterfrom
rafaelgaspar:multiarch-improvements

Conversation

@rafaelgaspar

@rafaelgaspar rafaelgaspar commented Sep 12, 2022

Copy link
Copy Markdown

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

CLAassistant commented Sep 12, 2022

Copy link
Copy Markdown

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
Copy Markdown
Contributor

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

@rafaelgaspar

Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants