Skip to content

Commit

Permalink
feat(sgx): add sidecar dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Gezq committed Feb 29, 2024
1 parent 92c11e3 commit f96a06a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions sgx_network_simulation/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
protobuf:
python -m grpc_tools.protoc -I . \
--python_out=. \
--grpc_python_out=. \
service.proto

gen-grpc-key:
openssl req -newkey rsa:2048 -nodes -keyout server.key -x509 -days 365 -out server.crt \
-subj "/emailAddress=linfan.fine@bytedance.com/CN=fl-sgx-test.com/O=BBB/OU=BBB"

docker-build:
cd ../.. && docker build -t sgx_network_simulation:latest -f experiments/sgx_network_simulation/Dockerfile .

run-docker-server:
docker run -it -p 32443:32443 sgx_network_simulation:latest server

run-docker-client:
docker run -it sgx_network_simulation:latest client --server_addr=localhost:32101

run-docker-debug:
docker run -it --rm sgx_network_simulation:latest
2 changes: 2 additions & 0 deletions sgx_network_simulation/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
grpcio==1.41.1
grpcio-tools==1.41.1

0 comments on commit f96a06a

Please sign in to comment.