diff --git a/demos/python/python_glibc/run_python_on_occlum.sh b/demos/python/python_glibc/run_python_on_occlum.sh index a59b02e6..5f0b99c3 100755 --- a/demos/python/python_glibc/run_python_on_occlum.sh +++ b/demos/python/python_glibc/run_python_on_occlum.sh @@ -7,6 +7,8 @@ NC='\033[0m' script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" python_dir="$script_dir/occlum_instance/image/opt/python-occlum" +[ -d occlum_instance ] || occlum new occlum_instance + cd occlum_instance && rm -rf image copy_bom -f ../python-glibc.yaml --root image --include-dir /opt/occlum/etc/template