From 3cc8f69c70f3fe14846f094eca32e474a4a953d6 Mon Sep 17 00:00:00 2001 From: Weijie Liu Date: Wed, 27 Jul 2022 15:36:45 +0800 Subject: [PATCH] Update run_python_on_occlum.sh Add missing occlum initialization --- demos/python/python_glibc/run_python_on_occlum.sh | 2 ++ 1 file changed, 2 insertions(+) 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