rolandjitsu / grpc-cross-arm

Cross compile gRPC for ARM with Docker

Home Page:https://rolandsdev.blog/cross-compile-grpc-for-arm-with-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Cross compile gRPC for ARM with Docker

https://rolandsdev.blog/cross-compile-grpc-for-arm-with-docker

License:MIT License


Languages

Language:CMake 35.8%Language:Dockerfile 32.8%Language:C++ 28.3%Language:HCL 3.1%