Skip to content

Commit 590cc7a

Browse files
authored
Merge pull request #3 from mohamed-arm/mohamed_deploy_parsec
Add deploy script for parsec_tool example
2 parents 1b48cea + ca066e6 commit 590cc7a

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,22 @@ cargo build
1414
* Run the attestation example on the host side:
1515
```
1616
RUST_LOG=info cargo run --bin attestation
17-
```
17+
```
18+
19+
## Run Parsec Example
20+
21+
```
22+
cd docker
23+
make build
24+
make exec
25+
```
26+
27+
in docker run the script.sh
28+
29+
```
30+
cd /work;
31+
32+
./setup_env.sh
33+
34+
RUST_LOG=info cargo run --bin parsec_execute
35+
```

setup_env.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
cargo build --bin dpu-runtime-manager
3+
RUST_LOG=info cargo run --bin dpu-runtime-manager -- --measurement e0f3a02f9f3c85caf8a4753723d7e50ee0f3a02f9f3c85caf8a4753723d7e50e --port 6666 &
4+
RUST_LOG=info cargo run --bin dpu-runtime-manager -- --measurement e0f3a02f9f3c85caf8a4753723d7e50ee0f3a02f9f3c85caf8a4753723d7e50f --port 6667 &
5+
6+
mkdir -p /tmp/dpu;
7+
cd /tmp/dpu;
8+
openssl ecparam -name prime256v1 -noout -genkey > CAKey.pem
9+
openssl req -x509 -key CAKey.pem -out CACert.pem -config /work/docker/ca-cert.conf
10+
11+
VTS_PATH="/opt/veraison/vts"
12+
PROVISIONING_PATH="/opt/veraison/provisioning"
13+
PAS_PATH="/opt/veraison/proxy_attestation_server"
14+
15+
cd /opt/veraison/vts && /opt/veraison/vts/vts &
16+
cd /opt/veraison/provisioning && /opt/veraison/provisioning/provisioning &
17+
cd /tmp/dpu && /opt/veraison/proxy_attestation_server -l 127.0.0.1:3010 &
18+
19+
cd -
20+
sleep 5
21+
22+
curl -X POST -H 'Content-Type: application/corim-unsigned+cbor; profile=http://arm.com/psa/iot/1' --data-binary "@/opt/veraison/psa_corim.cbor" localhost:8888/endorsement-provisioning/v1/submit

0 commit comments

Comments
 (0)