From c6dc8c807c91af2667ff54496e9dffd2b87f73b8 Mon Sep 17 00:00:00 2001 From: "zongmin.gu" Date: Sun, 26 Sep 2021 11:37:43 +0800 Subject: [PATCH] Update xgboost demo with bom file --- demos/xgboost/Makefile | 4 +--- demos/xgboost/xgboost.yaml | 11 +++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 demos/xgboost/xgboost.yaml diff --git a/demos/xgboost/Makefile b/demos/xgboost/Makefile index eb72bbf8..e9f1026d 100644 --- a/demos/xgboost/Makefile +++ b/demos/xgboost/Makefile @@ -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 diff --git a/demos/xgboost/xgboost.yaml b/demos/xgboost/xgboost.yaml new file mode 100644 index 00000000..fddc5b1c --- /dev/null +++ b/demos/xgboost/xgboost.yaml @@ -0,0 +1,11 @@ +includes: + - base.yaml +targets: + - target: /bin + copy: + - files: + - ../xgboost + - target: / + copy: + - dirs: + - ../data \ No newline at end of file