iminders / grpc-cpp-docker

Demonstrates how to use Docker to build and deploy a gRPC service implemented in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker

Using Docker to build and deploy a C++ gRPC service

This sample demonstrates how to create a basic gRPC service in C++ and build it it using GCC and CMake in a Docker container. It also shows how to create a Docker image that contains only the service implementation, without the tools needed to build it. It is based on the Dockerfile used to build the official gRPC CXX image.

run server

make serv

run (python3)client

make client

generate proto for python client

make proto

Build image:

make build

About

Demonstrates how to use Docker to build and deploy a gRPC service implemented in C++

License:Apache License 2.0


Languages

Language:Python 63.6%Language:CMake 14.9%Language:Dockerfile 10.5%Language:C++ 9.8%Language:Makefile 1.2%