Skip to content

geo-grpc/geometry-client-cpp

 
 

Repository files navigation

Check Dockerfile for required libraries

Cmake

mkdir build
cd build
cmake ..
make

Playing with protos without cmake (better off just using cmake as the below isn't guaranteed to work: From inside repo directory

protoc --cpp_out ./geometry/src -I ./proto \
    ./proto/epl/grpc/geometry_operators.proto \
    ./proto/epl/protobuf/geometry.proto
protoc --grpc_out=./geometry/src -I ./proto  \
    --plugin=protoc-gen-grpc=/usr/local/bin/grpc_cpp_plugin \
    ./proto/epl/grpc/geometry_operators.proto

Testing

Start Service:

docker run -p 8980:8980 -it --network=geometry-network --name=temp-c us.gcr.io/echoparklabs/geometry-service-java

Get ip address:

sudo docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' temp-c

Use ip address to run tests:

sudo docker run -it --network=geometry-network -e GEOMETRY_SERVICE_HOST=172.18.0.2:8980 temp-i /bin/bash -c "cd geometry-test; ./unitTest"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 50.4%
  • CMake 47.8%
  • Dockerfile 1.8%