Skip to content

Commit

Permalink
Add note how to run the GRPC server locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Kidswiss committed Jul 26, 2023
1 parent 717ac74 commit ff9e277
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,19 @@ To add a new function to PostgreSQL by VSHN:

entrypoint to start working with gRPC server is to run:
```
go run main.go start grpc --socket default.sock
go run main.go --log-level 1 start grpc --network tcp --socket ':9547' --devmode
```

it will create a socket file in Your local directory which is easier for development - no need to set permissions and directory structure.
This will start the GRPC server listening on a TCP port. Afterward you can configure the composition to use this connection:

```yaml
functions:
- container:
image: redis
imagePullPolicy: IfNotPresent
runner:
endpoint: host.docker.internal:9547 # HERE
```
It's also possible to trigger fake request to gRPC server by client (to imitate Crossplane):
```
Expand Down

0 comments on commit ff9e277

Please sign in to comment.