Based on alpine linux and oracle jdk image. Grpc server and client
100K+
To Run grPC Server docker run -t -i -p 8080:80 alex-grpc/alpine-test /bin/bash bash-4.3# cd /home/alex/pack/ bash-4.3# bin/service_server 80 2 // Server arguments are port and the time in seconds to block for each request. Each request is blocking to illustrate the client async call The Scala client can be run inside or outside of the container as we have mapped the port 80 to host 8080. Here is an example of running it outside
alex@alex-mc pack]$ bin/service_client 127.0.0.1 8080 1 1
//Client arguments are server IP, server port ( as client is running outside docker where server is running, port is mapped port), client id (1), number of request (1 to 10000...) , here 1
Content type
Image
Digest
Size
60.5 MB
Last updated
over 9 years ago
docker pull alexcpn/grpc