Skip to content

Conversation

@danbf
Copy link
Contributor

@danbf danbf commented Aug 3, 2021

Problem

current httpbin images don't support arm64 architecture. that means we can't run them on AWS Graviton's or Apple M1's natively.

Solution

use buildx to build a multi-arch with linux/amd64,linux/arm64 platform support.

the biggest change is we have to go from separate build and push steps into a single build and push step. this is because the local docker doesn't support building locally multi-arch images.

Notes

based on https://www.docker.com/blog/multi-arch-images/ and https://www.docker.com/blog/multi-arch-build-what-about-circleci/
our upstreams, golang:1.16 supports these architectures and more.

addresses: #63

@danbf danbf changed the title Build docker images for amd64 and arm64 {WIP} Build docker images for amd64 and arm64 Aug 3, 2021
@danbf danbf marked this pull request as ready for review August 11, 2021 21:45
@danbf
Copy link
Contributor Author

danbf commented Oct 18, 2021

@mccutchen this got mentioned in our HackWeek tech blog:

Screen Shot 2021-10-18 at 10 05 15 AM

https://tech.buzzfeed.com/hack-week-2021-round-up-2cebaae0e892

@mccutchen mccutchen merged commit 41b5245 into mccutchen:main Oct 20, 2021
@mccutchen
Copy link
Owner

This is awesome, thanks a lot @danbf! The move to graviton is exciting!

@danbf danbf deleted the multi-arch-images-danbf branch October 21, 2021 20:11
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.

2 participants