Modify rust demo with copy_bom
This commit is contained in:
parent
f8abcd9a1f
commit
3b5a1a3fc4
@ -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
|
||||
|
7
demos/rust/rust-demo.yaml
Normal file
7
demos/rust/rust-demo.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
includes:
|
||||
- base.yaml
|
||||
targets:
|
||||
- target: /bin
|
||||
copy:
|
||||
- files:
|
||||
- ../rust_app/target/x86_64-unknown-linux-musl/debug/rust_app
|
Loading…
Reference in New Issue
Block a user