diff --git a/demos/rust/run_rust_demo_on_occlum.sh b/demos/rust/run_rust_demo_on_occlum.sh index b446e148..9ef66bcf 100755 --- a/demos/rust/run_rust_demo_on_occlum.sh +++ b/demos/rust/run_rust_demo_on_occlum.sh @@ -9,8 +9,8 @@ popd # initialize occlum workspace rm -rf occlum_instance && mkdir occlum_instance && cd occlum_instance -occlum init -cp ../rust_app/target/x86_64-unknown-linux-musl/debug/rust_app image/bin +occlum init && rm -rf image +copy_bom -f ../rust-demo.yaml --root image --include-dir /opt/occlum/etc/template occlum build occlum run /bin/rust_app diff --git a/demos/rust/rust-demo.yaml b/demos/rust/rust-demo.yaml new file mode 100644 index 00000000..ca9c2b9b --- /dev/null +++ b/demos/rust/rust-demo.yaml @@ -0,0 +1,7 @@ +includes: + - base.yaml +targets: + - target: /bin + copy: + - files: + - ../rust_app/target/x86_64-unknown-linux-musl/debug/rust_app