Skip to content

Commit f96a06a

Browse files
committed
feat(sgx): add sidecar dockerfile
1 parent 92c11e3 commit f96a06a

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

sgx_network_simulation/Makefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
protobuf:
2+
python -m grpc_tools.protoc -I . \
3+
--python_out=. \
4+
--grpc_python_out=. \
5+
service.proto
6+
7+
gen-grpc-key:
8+
openssl req -newkey rsa:2048 -nodes -keyout server.key -x509 -days 365 -out server.crt \
9+
-subj "/emailAddress=linfan.fine@bytedance.com/CN=fl-sgx-test.com/O=BBB/OU=BBB"
10+
11+
docker-build:
12+
cd ../.. && docker build -t sgx_network_simulation:latest -f experiments/sgx_network_simulation/Dockerfile .
13+
14+
run-docker-server:
15+
docker run -it -p 32443:32443 sgx_network_simulation:latest server
16+
17+
run-docker-client:
18+
docker run -it sgx_network_simulation:latest client --server_addr=localhost:32101
19+
20+
run-docker-debug:
21+
docker run -it --rm sgx_network_simulation:latest
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
grpcio==1.41.1
2+
grpcio-tools==1.41.1

0 commit comments

Comments
 (0)