gRPC with Go (golang) and Docker
- Docker
- Build images.
Or, define the version of protoc.
make build
make build PROTOC_VER=x.x.x
- Run the container to start the gRPC server.
make run
- Put symlink, but it's not necessary if you develop in the docker container.
make init
- When update
hello.proto
, you should also updatehello.pb.go
.make pb_hello
- When update
main.go
, rebuild the image and rerun the container.make build_hello make run
go run main.go -tls -cert_file ./creds/server.crt -key_file ./creds/server.key