/cloudrun-go-grpc-example

This is a simple example showing gRPC golang service running on Cloud Run.

Primary LanguageGo

About

This is a simple example showing gRPC golang service running on Cloud Run.

Requirements

  1. gcloud with local authentication, project and GCP billing setup.
  2. docker

Optional

The following is needed for building your own grpc but already done for this repo example.

Golang protoc commandline tool: protoc

Setup and usage

Build Docker image

$ make build

Push Docker image

$ make push

Deploy Cloud Run service

$ make deploy

Test using local client

$ go run client/client.go $(make print-host) hi

Expected response where 'hi' is repeated twice to prove processing by the server:

2019/12/01 14:19:04 payload:"hihi"