X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Frun_report.sh;h=61acac38dcfbd2051b3b96d64f517b8e0448e66e;hp=ccbd2259024aee415293012276638f3fd9703fd3;hb=b2ab2bc3e5f5a61c45c15f9d5a30da9740f927c5;hpb=138c1b1f56a2b59afeafb92379e955b9baf95e7a diff --git a/resources/tools/presentation/run_report.sh b/resources/tools/presentation/run_report.sh index ccbd225902..61acac38dc 100755 --- a/resources/tools/presentation/run_report.sh +++ b/resources/tools/presentation/run_report.sh @@ -11,29 +11,20 @@ typeset -A DIR DIR[WORKING]=_tmp CFG[BLD_LATEX]=1 -# Install system dependencies -sudo apt-get -y update -sudo apt-get -y install libxml2 libxml2-dev libxslt-dev build-essential \ - zlib1g-dev unzip - -if [[ ${CFG[BLD_LATEX]} -eq 1 ]] ; -then - sudo apt-get -y install xvfb texlive-latex-recommended \ - texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra latexmk wkhtmltopdf inkscape - sudo sed -i.bak 's/^\(main_memory\s=\s\).*/\110000000/' /usr/share/texlive/texmf-dist/web2c/texmf.cnf -fi - # Create working directories mkdir ${DIR[WORKING]} # Create virtual environment -virtualenv ${DIR[WORKING]}/env -. ${DIR[WORKING]}/env/bin/activate +virtualenv -p $(which python3) ${DIR[WORKING]}/env +source ${DIR[WORKING]}/env/bin/activate + +# FIXME: Temporary hack until all docker dns will be solved +echo "nameserver 172.17.0.1" > /etc/resolv.conf # Install python dependencies: -pip install -r requirements.txt +pip3 install -r requirements.txt -export PYTHONPATH=`pwd` +export PYTHONPATH=`pwd`:`pwd`/../../../:`pwd`/../../libraries/python python pal.py \ --specification specification.yaml \