-
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
64 changed files
with
399 additions
and
1,695 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
#!/bin/bash | ||
cd "$( | ||
cd "$(dirname "$0")" >/dev/null 2>&1 | ||
pwd -P | ||
)/" || exit | ||
# https://github.com/npclaudiu/grpc-cpp-docker.git | ||
|
||
set -e | ||
docker images | grep debian | ||
cd .. | ||
rm -rf docker/hello-grpc-cpp | ||
cd hello-grpc-cpp | ||
bazel clean | ||
cd .. | ||
cp -r hello-grpc-cpp docker/ | ||
cd docker | ||
echo "1 build builder" | ||
# --progress=plain | ||
docker build -f cpp_grpc.dockerfile --target build -t feuyeux/grpc_cpp:1.0.0 . | ||
# docker run --rm -it --entrypoint=bash feuyeux/grpc_cpp:1.0.0 | ||
echo "2 build server" | ||
docker build -f cpp_grpc.dockerfile --target server -t feuyeux/grpc_server_cpp:1.0.0 . | ||
echo "3 build client" | ||
docker build -f cpp_grpc.dockerfile --target client -t feuyeux/grpc_client_cpp:1.0.0 . | ||
rm -rf hello-grpc-cpp | ||
echo "DONE" | ||
# docker run --rm -it --entrypoint=bash feuyeux/grpc_server_cpp: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
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_cpp:1.0.0 | ||
docker push feuyeux/grpc_client_cpp: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_cpp | ||
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_cpp | ||
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.