Fix the script of running Python demo

This commit is contained in:
LI Qing 2021-07-13 16:34:10 +08:00 committed by Zongmin.Gu
parent a889dc9c38
commit f2e52941e8
5 changed files with 8 additions and 2 deletions

3
demos/python/python_glibc/.gitignore vendored Normal file

@ -0,0 +1,3 @@
occlum_instance/
miniconda/
Miniconda3*

@ -14,7 +14,7 @@ fi
cd occlum_instance cd occlum_instance
# Copy files into Occlum Workspace and build # 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 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/libdl.so.2 image/opt/occlum/glibc/lib/
cp -f /opt/occlum/glibc/lib/libutil.so.1 image/opt/occlum/glibc/lib/ cp -f /opt/occlum/glibc/lib/libutil.so.1 image/opt/occlum/glibc/lib/

3
demos/pytorch/.gitignore vendored Normal file

@ -0,0 +1,3 @@
occlum_instance/
miniconda/
Miniconda3*

@ -14,7 +14,7 @@ fi
cd occlum_instance cd occlum_instance
# Copy files into Occlum Workspace and build # 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 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/libdl.so.2 image/opt/occlum/glibc/lib/
cp -f /opt/occlum/glibc/lib/libutil.so.1 image/opt/occlum/glibc/lib/ cp -f /opt/occlum/glibc/lib/libutil.so.1 image/opt/occlum/glibc/lib/