Skip to content

Commit

Permalink
Update wrapper.vm
Browse files Browse the repository at this point in the history
1. Make a directory named tmp in $PWD and bind mount it on the container to avoid any creation of temporary files in case of a cvmfs container.
2. For the containers pulled from docker-hub (or similar repositories), should also use the $PWD/tmp folder
  • Loading branch information
sandepat authored Sep 1, 2023
1 parent b62c908 commit e744ce7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vip-portal/src/main/resources/vm/wrapper.vm
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ fi
# Change PYTHONPATH to make all strings unicode by default in python2 (as in python3)
# Otherwise `bosh exec` fails on any non-ascii characters in outputs
echo "import sys; sys.setdefaultencoding(\"UTF8\")" > sitecustomize.py
PYTHONPATH=".:$PYTHONPATH" $BOSHEXEC exec launch $JSONFILE input_param_file.json -v $PWD/../cache:$PWD/../cache
#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

if [ $? != 0 ]
then
Expand Down

0 comments on commit e744ce7

Please sign in to comment.