This package contains Docker image with Go, Node React Native GRPC Bridge, Swift GRPC protoc plugins.
https://hub.docker.com/r/anjmao/grpc-tools/
See Makefile and example folder
make compile-go
make compile-swift
make compile-rn-bridge
Go
docker run \
--rm \
-v $(pwd)/proto:/proto \
-v $(pwd)/.out:/.out \
-w / \
anjmao/grpc-tools \
--proto_path /proto \
--go_out=plugins=grpc:/.out myproto.proto
Swift
docker run \
--rm \
-v $(pwd)/proto:/proto \
-v $(pwd)/.out:/.out \
-w / \
anjmao/grpc-tools \
--proto_path /proto \
--swift_out=/.out \
--swiftgrpc_out=/.out \
myproto.proto
React Native Swift Grpc Bridge
docker run \
--rm \
-v $(pwd)/proto:/proto \
-v $(pwd)/.out:/.out \
-w / \
anjmao/grpc-tools \
--proto_path /proto \
--rn_out=/.out \
--plugin=protoc-gen-rn=/node_modules/rn-grpc-bridge/bin/rn-grpc-bridge \
myproto.proto