From f2e52941e8fde623861726c315d1aa9915d05926 Mon Sep 17 00:00:00 2001 From: LI Qing Date: Tue, 13 Jul 2021 16:34:10 +0800 Subject: [PATCH] Fix the script of running Python demo --- demos/python/python_glibc/.gitignore | 3 +++ demos/python/python_glibc/run_python_on_occlum.sh | 2 +- demos/python/{ => python_musl}/.gitignore | 0 demos/pytorch/.gitignore | 3 +++ demos/pytorch/run_pytorch_on_occlum.sh | 2 +- 5 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 demos/python/python_glibc/.gitignore rename demos/python/{ => python_musl}/.gitignore (100%) create mode 100644 demos/pytorch/.gitignore diff --git a/demos/python/python_glibc/.gitignore b/demos/python/python_glibc/.gitignore new file mode 100644 index 00000000..4ba7c712 --- /dev/null +++ b/demos/python/python_glibc/.gitignore @@ -0,0 +1,3 @@ +occlum_instance/ +miniconda/ +Miniconda3* diff --git a/demos/python/python_glibc/run_python_on_occlum.sh b/demos/python/python_glibc/run_python_on_occlum.sh index 6e7ff867..ec8f969f 100755 --- a/demos/python/python_glibc/run_python_on_occlum.sh +++ b/demos/python/python_glibc/run_python_on_occlum.sh @@ -14,7 +14,7 @@ fi cd occlum_instance # Copy files into Occlum Workspace and build -if [ ! -d "image/lib/python3" ];then +if [ ! -L "image/bin/python3" ];then ln -s /opt/python-occlum/bin/python3 image/bin/python3 cp -f /opt/occlum/glibc/lib/libdl.so.2 image/opt/occlum/glibc/lib/ cp -f /opt/occlum/glibc/lib/libutil.so.1 image/opt/occlum/glibc/lib/ diff --git a/demos/python/.gitignore b/demos/python/python_musl/.gitignore similarity index 100% rename from demos/python/.gitignore rename to demos/python/python_musl/.gitignore diff --git a/demos/pytorch/.gitignore b/demos/pytorch/.gitignore new file mode 100644 index 00000000..4ba7c712 --- /dev/null +++ b/demos/pytorch/.gitignore @@ -0,0 +1,3 @@ +occlum_instance/ +miniconda/ +Miniconda3* diff --git a/demos/pytorch/run_pytorch_on_occlum.sh b/demos/pytorch/run_pytorch_on_occlum.sh index 9f73c650..21f9e9ed 100755 --- a/demos/pytorch/run_pytorch_on_occlum.sh +++ b/demos/pytorch/run_pytorch_on_occlum.sh @@ -14,7 +14,7 @@ fi cd occlum_instance # Copy files into Occlum Workspace and build -if [ ! -d "image/lib/python3" ];then +if [ ! -L "image/bin/python3" ];then ln -s /opt/python-occlum/bin/python3 image/bin/python3 cp -f /opt/occlum/glibc/lib/libdl.so.2 image/opt/occlum/glibc/lib/ cp -f /opt/occlum/glibc/lib/libutil.so.1 image/opt/occlum/glibc/lib/