GoogleCloudPlatform / buildpacks

Builders and buildpacks designed to run on Google Cloud's container platforms
Apache License 2.0
961 stars 144 forks source link

Can `gcr.io/buildpacks/builder:v1` build `linux/arm64` images? #227

Open gsquared94 opened 2 years ago

gsquared94 commented 2 years ago

Currently gcr.io/buildpacks/builder:v1 supports building only linux/amd64 images. Is it possible to publish a manifest list for this builder image that supports linux/arm64 arch as well? This would be immediately useful to build and run container images on the new GKE ARM node clusters.

spew commented 1 year ago

Skaffold uses the buildpacks builder to build containers for amd64. Ask is to add support for arm64 to enable skaffold [1] to produce arm64 images in addition to amd64 images.

[1] https://github.com/GoogleContainerTools/skaffold

jama22 commented 1 year ago

Just thinking out loud here, I think there would be a lot of plumbing required to make this happen:

  1. We'd need an entirely new set of builders that work on linux/arm64
  2. Determine which languages are compatible with the arm ecosystem and what (if any) limitations there are

Open questions:

Resources I found while looking into this:

Overall I think it would be interesting to do this. However lots of details to work out to get this going for the project