From 3035a0353a45c1ff92563861d31844fd935d291e Mon Sep 17 00:00:00 2001 From: ClawSeven Date: Wed, 14 Jul 2021 14:18:07 +0800 Subject: [PATCH] Fix python demo warning --- demos/python/python_glibc/install_python_with_conda.sh | 2 +- demos/python/python_glibc/run_python_on_occlum.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demos/python/python_glibc/install_python_with_conda.sh b/demos/python/python_glibc/install_python_with_conda.sh index 00dba6c9..fb19e1a0 100755 --- a/demos/python/python_glibc/install_python_with_conda.sh +++ b/demos/python/python_glibc/install_python_with_conda.sh @@ -8,5 +8,5 @@ script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" # 2. Install python and dependencies to specified position [ -d Miniconda3-latest-Linux-x86_64.sh ] || wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh [ -d miniconda ] || bash ./Miniconda3-latest-Linux-x86_64.sh -b -p $script_dir/miniconda -$script_dir/miniconda/bin/conda create --prefix $script_dir/occlum_instance/image/opt/python-occlum -y python=3.7 numpy pandas scipy=1.3.1 Cython scikit-learn=0.21.1 +$script_dir/miniconda/bin/conda create --prefix $script_dir/occlum_instance/image/opt/python-occlum -y python=3.7 numpy=1.18.1 pandas=0.24.2 scipy=1.3.1 Cython scikit-learn=0.21.1 diff --git a/demos/python/python_glibc/run_python_on_occlum.sh b/demos/python/python_glibc/run_python_on_occlum.sh index ec8f969f..d523235c 100755 --- a/demos/python/python_glibc/run_python_on_occlum.sh +++ b/demos/python/python_glibc/run_python_on_occlum.sh @@ -21,9 +21,9 @@ if [ ! -L "image/bin/python3" ];then cp -f /opt/occlum/glibc/lib/librt.so.1 image/opt/occlum/glibc/lib/ cp -rf ../dataset image cp -f ../demo.py image - new_json="$(jq '.resource_limits.user_space_size = "320MB" | + new_json="$(jq '.resource_limits.user_space_size = "640MB" | .resource_limits.kernel_space_heap_size = "256MB" | - .process.default_mmap_size = "256MB" | + .process.default_mmap_size = "512MB" | .env.default += ["PYTHONHOME=/opt/python-occlum"]' Occlum.json)" && \ echo "${new_json}" > Occlum.json occlum build