Update local_attestation demo with copy_bom tool

Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
This commit is contained in:
Zheng, Qi 2021-09-26 14:06:51 +08:00 committed by Zongmin.Gu
parent a5e74f2769
commit 59a896b499
2 changed files with 17 additions and 5 deletions

@ -13,12 +13,10 @@ occlum_=$(CUR_DIR)/../..
all: occlum_instance
occlum_instance: build_src
@mkdir -p occlum_instance
@rm -rf occlum_instance && mkdir -p occlum_instance
@cd occlum_instance && \
occlum init && \
cp $(CUR_DIR)/AppResponder/responder image/bin/ && \
cp $(OPENSSL)/libcrypto.so.1.1 image/lib/ && \
cp $(CUR_DIR)/DiffieHellmanLibrary/libecdh.so image/lib/ && \
occlum init && rm -rf image && \
copy_bom -f ../bom.yaml --root image --include-dir /opt/occlum/etc/template && \
occlum build
@cp -t occlum_instance $(APP) $(BUILD_DIR)/libenclave_initiator.signed.so

@ -0,0 +1,14 @@
includes:
- base.yaml
# local attestation
targets:
# copy bins
- target: /bin
copy:
- files:
- ../AppResponder/responder
# copy lib
- target: /lib
copy:
- files:
- ../DiffieHellmanLibrary/libecdh.so