https://github.com/daikideal/go-grpc-sample
Go×gRPC×Docker
https://github.com/daikideal/go-grpc-sample
docker golang grpc
Last synced: 5 months ago
JSON representation
Go×gRPC×Docker
- Host: GitHub
- URL: https://github.com/daikideal/go-grpc-sample
- Owner: daikideal
- Created: 2022-06-12T01:41:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-19T12:47:22.000Z (about 4 years ago)
- Last Synced: 2024-06-20T21:01:59.135Z (about 2 years ago)
- Topics: docker, golang, grpc
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-gprc-sample
## build
Clone repository.
```bash
$ git clone git@github.com:daikideal/go-grpc-sample
```
Build docker image.
```bash
$ docker build -t go-grpc-sample .
```
## run
Run docker container and enter the container.
```bash
$ docker run -it \
-v $PWD:/go/src/github.com/daikideal/go-grpc-sample \
go-grpc-sample \
bash
```
Start go server (background).
```bash
# go run cmd/server/server.go &
```
Send request with go cli.
```bash
# go run cmd/client/client.go
```