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/