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
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"