Modify rust demo with copy_bom

This commit is contained in:
jiangjianfeng 2021-09-17 14:47:36 +08:00 committed by Zongmin.Gu
parent f8abcd9a1f
commit 3b5a1a3fc4
2 changed files with 9 additions and 2 deletions

@ -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

@ -0,0 +1,7 @@
includes:
- base.yaml
targets:
- target: /bin
copy:
- files:
- ../rust_app/target/x86_64-unknown-linux-musl/debug/rust_app