Fix the script of running Python demo
This commit is contained in:
parent
a889dc9c38
commit
f2e52941e8
3
demos/python/python_glibc/.gitignore
vendored
Normal file
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
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/
|
||||||
|
Loading…
Reference in New Issue
Block a user