squeaknode/install-rpc.sh
Jonathan Zernik b78e868f53
Connect client and server (#15)
* Remove threading from uploader.

* Create rpc_client class in client to connect to server (using grpc) and verify that the upload_squeak method in rpc_client gets calleed

* Add main class with entry point in squeaknod/server

* Added sqkserver command and service to docker-compose for test

* Add server handler class, and still trying to load rpc implementation of server proto

* Almost got server grpc proto working, now only lnd client failing with tls cert issue

* Added server service and got it working in itest, it still doesn't do anything.
2020-06-03 02:59:56 -07:00

22 lines
848 B
Bash
Executable file

#!/usr/bin/env bash
if [ ! -d "googleapis" ]; then
git clone https://github.com/googleapis/googleapis.git
fi
if [ ! -f "rpc.proto" ]; then
curl -o rpc.proto -s https://raw.githubusercontent.com/lightningnetwork/lnd/master/lnrpc/rpc.proto
fi
# Move this to squeaknode/common/lnd/rpc.proto instead.
cp rpc.proto squeaknode/common
echo "Installing RPC protocol files"
# install lnd protocol
python3 -m grpc_tools.protoc --proto_path=googleapis:. --python_out=. --grpc_python_out=. squeaknode/common/rpc.proto
# install squeak server protocol
python3 -m grpc_tools.protoc --proto_path=googleapis:. --python_out=. --grpc_python_out=. squeaknode/common/rpc/squeak_server.proto
# install squeak client protocol
python3 -m grpc_tools.protoc --proto_path=googleapis:. --python_out=. --grpc_python_out=. squeaknode/client/rpc/route_guide.proto