diff --git a/vip-portal/src/main/resources/vm/wrapper.vm b/vip-portal/src/main/resources/vm/wrapper.vm index 225015715..f69d382ab 100644 --- a/vip-portal/src/main/resources/vm/wrapper.vm +++ b/vip-portal/src/main/resources/vm/wrapper.vm @@ -161,7 +161,16 @@ fi echo "import sys; sys.setdefaultencoding(\"UTF8\")" > sitecustomize.py #creating a temporary directory for bindmount /tmp of containers mkdir -p tmp -PYTHONPATH=".:$PYTHONPATH" $BOSHEXEC exec launch $JSONFILE input_param_file.json -v $PWD/../cache:$PWD/../cache -v $PWD/tmp:/tmp +#TMP_FOLDER is created differently for execution on GRID and execution on LOCAL +#TMP of the container is bind mounted on TMP_FOLDER to avoid creating temporary files on container. +TMP_FOLDER=tmp_$(basename $PWD) +#if($isRunOnGrid == false) +TMP_FOLDER=/tmp/$TMP_FOLDER +#else +TMP_FOLDER=../$TMP_FOLDER +#end + +PYTHONPATH=".:$PYTHONPATH" $BOSHEXEC exec launch $JSONFILE input_param_file.json -v $PWD/../cache:$PWD/../cache -v $TMP_FOLDER:/tmp if [ $? != 0 ] then