build-tools icon indicating copy to clipboard operation
build-tools copied to clipboard

Build multiarch protobuf Docker images

Open yvrhdn opened this issue 4 years ago • 2 comments

This adapts protobuf/Dockerfile so it can be built for amd64 and arm64 targets by using TARGETARCH. I had to update PROTOC_GEN_LINT_VERSION as only v0.2.4 has downloads for all archs.

Next I updated the GitHub Actions workflow, I'm using docker/build-push-action to build multiarch images. Under the hood this uses docker buildx.

You can run buildx locally using:

docker buildx build --load --platform linux/arm64 -t otel/protobuf:latest protobuf

Fixes https://github.com/open-telemetry/build-tools/issues/42

yvrhdn avatar Oct 08 '21 14:10 yvrhdn

I see I used the wrong secret name, this should work 🙂

yvrhdn avatar Oct 11 '21 18:10 yvrhdn

@kvrhdn please address all the concerns/comments.

bogdandrutu avatar Jan 18 '22 18:01 bogdandrutu