fix packager script

This commit is contained in:
Valentyn Faychuk 2024-11-06 23:05:29 +02:00
parent 75c94324dd
commit 193426b041
Signed by: valy
GPG Key ID: F1AB995E20FEADC5

@ -29,12 +29,13 @@ if [ "$prerequisites" == "--prep" ]; then
chown -R root:root /root/.ssh chown -R root:root /root/.ssh
chmod 600 /root/.ssh/id_ed25519 chmod 600 /root/.ssh/id_ed25519
ssh-keyscan -H gitea.detee.cloud > ~/.ssh/known_hosts ssh-keyscan -H gitea.detee.cloud > ~/.ssh/known_hosts
fi
echo "Building the occlum fork" echo "Building the occlum fork"
git clone git@gitea.detee.cloud:SGX/occlum.git git clone git@gitea.detee.cloud:SGX/occlum.git
(cd occlum && make submodule) (cd occlum && make submodule)
(cd tools/toolchains/utils_lib && ./build.sh) (cd tools/toolchains/utils_lib && ./build.sh)
fi
echo "Building the hacker-challenge signed bundle" echo "Building the hacker-challenge signed bundle"
occlum-cargo build --release occlum-cargo build --release
@ -52,7 +53,7 @@ targets:
copy: copy:
- files: - files:
- /opt/occlum/toolchains/dcap_lib/musl/libocclum_dcap.so.0.1.0 - /opt/occlum/toolchains/dcap_lib/musl/libocclum_dcap.so.0.1.0
- /opt/occlum/toolchains/utils_lib/musl/libutils_dcap.so.0.1.0 - /opt/occlum/toolchains/utils_lib/musl/libocclum_utils.so.0.1.0
EOF EOF
rm -rf challenge_instance && mkdir challenge_instance && cd challenge_instance rm -rf challenge_instance && mkdir challenge_instance && cd challenge_instance