From 3b5a1a3fc4be3ff39e2969c03692e0acd22df3c1 Mon Sep 17 00:00:00 2001 From: jiangjianfeng Date: Fri, 17 Sep 2021 14:47:36 +0800 Subject: [PATCH] Modify rust demo with copy_bom --- demos/rust/run_rust_demo_on_occlum.sh | 4 ++-- demos/rust/rust-demo.yaml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 demos/rust/rust-demo.yaml 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