Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anjmao/grpc-tools
GRPC protoc compiler plugins in Docker
https://github.com/anjmao/grpc-tools
docker grpc-plugins protoc protoc-plugins tools
Last synced: 12 days ago
JSON representation
GRPC protoc compiler plugins in Docker
- Host: GitHub
- URL: https://github.com/anjmao/grpc-tools
- Owner: anjmao
- License: mit
- Created: 2018-06-21T13:30:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-12T12:23:10.000Z (about 6 years ago)
- Last Synced: 2024-10-14T11:03:34.549Z (about 1 month ago)
- Topics: docker, grpc-plugins, protoc, protoc-plugins, tools
- Language: Dockerfile
- Homepage:
- Size: 4.75 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GRPC protoc compiler tools in Docker
This package contains Docker image with Go, [Node React Native GRPC Bridge](https://github.com/anjmao/rn-grpc-bridge), Swift GRPC protoc plugins.
### Docker
https://hub.docker.com/r/anjmao/grpc-tools/
### Local usage
See Makefile and example folder
```sh
make compile-go
make compile-swift
make compile-rn-bridge
```### Docker image
Go
```sh
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
```sh
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
```sh
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
```