Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.38 KB

File metadata and controls

34 lines (25 loc) · 1.38 KB

Run envoy

from the docker folder

sudo -E  docker build -t envoy:v1 .

start it

sudo docker run  -p 8080:8080 --net=host  envoy:v1

Run

Use the generated js files to access the grpc server!

Re-configure ip address, if envoy is running on "other machine"

modify and rebuild envoy docker. More specifically change 127.0.0.1 to point to the machine where signalbroker-server is running. The redo the docke build and docker run flow as described above

Reference, re-generate web-grp js files

inspiration from https://github.com/grpc/grpc-web/ and https://hackernoon.com/interface-grpc-with-web-using-grpc-web-and-envoy-possibly-the-best-way-forward-3ae9671af67

proto files are avalible in: signal_server/apps/grpc_service/proto_files/

to re-generate files - or just grab the files from the generated folder

mkdir generated. Run the command from "this" directory!

protoc ./proto_files/*.proto -I./proto_files/ --js_out=import_style=commonjs:generated --grpc-web_out=import_style=commonjs,mode=grpcwebtext:generated