-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
209 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
cd "$( | ||
cd "$(dirname "$0")" >/dev/null 2>&1 | ||
pwd -P | ||
)/" || exit | ||
set -e | ||
|
||
langs=(rust java go csharp python) | ||
# TODO: cpp rust java go csharp python nodejs dart kotlin swift php ts | ||
for lang in "${langs[@]}"; do | ||
echo "~~~ run grpc $lang client ~~~" | ||
# pass the first argument to the script | ||
sh "${lang}_run_client.sh" "$1" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
FROM openjdk:21-jdk-slim AS server | ||
FROM openjdk:23-jdk-slim AS server | ||
# https://hub.docker.com/_/openjdk | ||
COPY hello-grpc-java-server.jar grpc-server.jar | ||
COPY tls/server_certs /var/hello_grpc/server_certs | ||
COPY tls/client_certs /var/hello_grpc/client_certs | ||
ENTRYPOINT ["java","-jar","/grpc-server.jar"] | ||
|
||
FROM openjdk:21-jdk-slim AS client | ||
FROM openjdk:23-jdk-slim AS client | ||
COPY hello-grpc-java-client.jar grpc-client.jar | ||
COPY tls/client_certs /var/hello_grpc/client_certs | ||
CMD ["java","-jar","/grpc-client.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
docker push feuyeux/grpc_server_rust:1.0.0 | ||
docker push feuyeux/grpc_client_rust:1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
cd "$( | ||
cd "$(dirname "$0")" >/dev/null 2>&1 | ||
pwd -P | ||
)/" || exit | ||
export CLIENT_NAME=grpc_client_rust | ||
export CLIENT_IMG=feuyeux/$CLIENT_NAME:1.0.0 | ||
# if there's first argument, it's secure, otherwise insecure | ||
if [ "$1" = "secure" ]; then | ||
sh run_tls_client.sh | ||
else | ||
sh run_insecure_client.sh | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
cd "$( | ||
cd "$(dirname "$0")" >/dev/null 2>&1 | ||
pwd -P | ||
)/" || exit | ||
export SERVER_NAME=grpc_server_rust | ||
export SERVER_IMG=feuyeux/$SERVER_NAME:1.0.0 | ||
# if there's first argument, it's secure, otherwise insecure | ||
if [ "$1" = "secure" ]; then | ||
sh run_tls_server.sh | ||
else | ||
sh run_insecure_server.sh | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.