Update ping/pong demo with bom file

This commit is contained in:
zongmin.gu 2021-09-26 13:42:04 +08:00 committed by Zongmin.Gu
parent f0156cb08a
commit 59988f9491
4 changed files with 26 additions and 4 deletions

@ -0,0 +1,11 @@
includes:
- base.yaml
targets:
- target: /bin
copy:
- files:
- ../occlum_ping
- target: /etc
copy:
- files:
- /etc/hosts

@ -0,0 +1,11 @@
includes:
- base.yaml
targets:
- target: /bin
copy:
- files:
- ../occlum_pong
- target: /etc
copy:
- files:
- /etc/hosts

@ -25,8 +25,8 @@ new_json="$(jq '.resource_limits.user_space_size = "2560MB" |
echo "${new_json}" > Occlum.json echo "${new_json}" > Occlum.json
# 2. Copy program into Occlum Workspace and build # 2. Copy program into Occlum Workspace and build
cp ../occlum_ping image/bin rm -rf image && \
cp /etc/hosts image/etc/ copy_bom -f ../ping.yaml --root image --include-dir /opt/occlum/etc/template && \
occlum build occlum build
# 3. Run the hello world sample # 3. Run the hello world sample

@ -25,8 +25,8 @@ new_json="$(jq '.resource_limits.user_space_size = "2560MB" |
echo "${new_json}" > Occlum.json echo "${new_json}" > Occlum.json
# 2. Copy program into Occlum Workspace and build # 2. Copy program into Occlum Workspace and build
cp ../occlum_pong image/bin rm -rf image && \
cp /etc/hosts image/etc/ copy_bom -f ../pong.yaml --root image --include-dir /opt/occlum/etc/template && \
occlum build occlum build
# 3. Run the hello world sample # 3. Run the hello world sample