Update go web_server demo with bom file
This commit is contained in:
parent
b86cbfac48
commit
f0156cb08a
@ -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
|
||||||
|
7
demos/golang/web_server/web_server.yaml
Normal file
7
demos/golang/web_server/web_server.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
includes:
|
||||||
|
- base.yaml
|
||||||
|
targets:
|
||||||
|
- target: /bin
|
||||||
|
copy:
|
||||||
|
- files:
|
||||||
|
- ../web_server
|
Loading…
Reference in New Issue
Block a user