Update xgboost demo with bom file

This commit is contained in:
zongmin.gu 2021-09-26 11:37:43 +08:00 committed by Zongmin.Gu
parent 8b2c99cafd
commit c6dc8c807c
2 changed files with 12 additions and 3 deletions

@ -28,9 +28,7 @@ occlum_workspace: $(BIN) $(DATA)
occlum init && \
jq '.process.default_mmap_size = "96MB" | .resource_limits.max_num_of_threads = $(TCS_NUM)' Occlum.json > temp_Occlum.json && \
mv temp_Occlum.json Occlum.json && \
cp ../$(BIN) image/bin && \
cp ../xgboost_src/lib/libxgboost.so image/lib && \
cp -r ../$(DATA) image && \
copy_bom -f ../xgboost.yaml --root image --include-dir /opt/occlum/etc/template && \
occlum build
test: occlum_workspace

@ -0,0 +1,11 @@
includes:
- base.yaml
targets:
- target: /bin
copy:
- files:
- ../xgboost
- target: /
copy:
- dirs:
- ../data