Update go web_server demo with bom file

This commit is contained in:
zongmin.gu 2021-09-26 13:35:30 +08:00 committed by Zongmin.Gu
parent b86cbfac48
commit f0156cb08a
2 changed files with 9 additions and 1 deletions

@ -21,7 +21,8 @@ new_json="$(jq '.resource_limits.user_space_size = "1000MB" |
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 ../web_server image/bin rm -rf image && \
copy_bom -f ../web_server.yaml --root image --include-dir /opt/occlum/etc/template && \
occlum build occlum build
# 3. Run the web server sample # 3. Run the web server sample

@ -0,0 +1,7 @@
includes:
- base.yaml
targets:
- target: /bin
copy:
- files:
- ../web_server