sh build.sh
langs=(cpp rust java go csharp python nodejs dart kotlin swift php ts)
lang=$langs[2]
sh build_$lang.sh
No. |
Lang |
Server |
Client |
1 |
C++ |
feuyeux/grpc_server_cpp:1.0.0 |
feuyeux/grpc_client_cpp:1.0.0 |
2 |
Rust |
feuyeux/grpc_server_rust:1.0.0 |
feuyeux/grpc_client_rust:1.0.0 |
3 |
Java |
feuyeux/grpc_server_java:1.0.0 |
feuyeux/grpc_client_java:1.0.0 |
4 |
Go |
feuyeux/grpc_server_go:1.0.0 |
feuyeux/grpc_client_go:1.0.0 |
5 |
C# |
feuyeux/grpc_server_csharp:1.0.0 |
feuyeux/grpc_client_csharp:1.0.0 |
6 |
Python |
feuyeux/grpc_server_python:1.0.0 |
feuyeux/grpc_client_python:1.0.0 |
7 |
Node.js |
feuyeux/grpc_server_nodejs:1.0.0 |
feuyeux/grpc_client_nodejs:1.0.0 |
8 |
Dart |
feuyeux/grpc_server_dart:1.0.0 |
feuyeux/grpc_client_dart:1.0.0 |
9 |
Kotlin |
feuyeux/grpc_server_kotlin:1.0.0 |
feuyeux/grpc_client_kotlin:1.0.0 |
10 |
Swift |
feuyeux/grpc_server_swift:1.0.0 |
feuyeux/grpc_client_swift:1.0.0 |
11 |
PHP |
feuyeux/grpc_server_php:1.0.0 |
feuyeux/grpc_client_php:1.0.0 |
12 |
TypeScript |
feuyeux/grpc_server_ts:1.0.0 |
feuyeux/grpc_client_ts:1.0.0 |
langs=(cpp rust java go csharp python nodejs dart kotlin swift php ts)
lang=$langs[2]
lang=php
SERVER_NAME=grpc_server_$lang
SERVER_IMG=feuyeux/$SERVER_NAME:1.0.0
CLIENT_NAME=grpc_client_$lang
CLIENT_IMG=feuyeux/$CLIENT_NAME:1.0.0
echo "SERVER_IMG=$SERVER_IMG,CLIENT_IMG=$CLIENT_IMG"
docker run --rm --name $SERVER_NAME -p 9996:9996 $SERVER_IMG
docker run --rm --name $CLIENT_NAME -e GRPC_SERVER=$(ipconfig getifaddr en0) $CLIENT_IMG
docker run --rm --name $CLIENT_NAME -e GRPC_SERVER=host.docker.internal $CLIENT_IMG
docker run --rm --name $SERVER_NAME -p 9996:9996 -e GRPC_HELLO_SECURE=Y $SERVER_IMG
docker run --rm --name $CLIENT_NAME \
-e GRPC_SERVER=$(ipconfig getifaddr en0) \
-e GRPC_HELLO_SECURE=Y \
$CLIENT_IMG
docker run --rm --name $CLIENT_NAME \
-e GRPC_SERVER=host.docker.internal \
-e GRPC_HELLO_SECURE=Y \
$CLIENT_IMG