Skip to content

Files

Latest commit

731b2e1 · Jan 5, 2022

History

History
This branch is 1 commit ahead of, 455 commits behind occlum/occlum:master.

grpc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 5, 2022
Dec 13, 2019
Dec 13, 2019
Jul 17, 2020
Jul 17, 2020
Jan 23, 2020
Sep 26, 2021
Sep 26, 2021
Jan 23, 2020
Jan 23, 2020
Sep 26, 2021
Jan 23, 2020
Sep 26, 2021

Run gRPC C++ Client/Server on Occlum

Step 1:

Downlaod, build and install openssl into /usr/local/occlum/x86_64-linux-musl/lib:

./download_and_install_openssl.sh

Step 2:

Download, build and install cares, protobuf and finally gRPC into /usr/local/occlum/x86_64-linux-musl/lib:

./download_and_install_grpc.sh

Step 3:

Prepare the gRPC C++ Hello World sample project, which consists of a client and server:

./prepare_client_server.sh

Then you can see the source code in client and server if you want.

Step 4:

Run the demo server which will listen on port 50051 on occlum:

./run_server_on_occlum.sh

or on host:

./run_server_on_host.sh

Then you can invoke gRPC service by running client in a different terminal on occlum:

./run_client_on_occlum.sh

or on host:

./run_server_on_host.sh

And you will see the "Greeter received: Hello world" in the client side output.