Skip to content

rolandjitsu/grpc-cross-arm

Repository files navigation

gRPC Cross ARM

Cross compile gRPC for ARM with Docker.

GitHub Workflow Status

Prerequisites

Install the following tools:

Setup Docker

Create a builder:

docker buildx create --name my-builder --driver docker-container --use

Then inspect and bootstrap it:

docker buildx inspect --bootstrap

Compile

To compile the binaries:

docker buildx build -f Dockerfile -o type=local,dest=./bin .

P.S. To bust the cache, use --no-cache.

Bake

To make things easier, you can use the bake command.

To compile the binaries:

docker buildx bake

Learning Material