X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Frun_report.sh;h=81188e73ff0a78e0b070883c47ea055baf718447;hp=0438248b8f5c6e0b4523769375a6808e71ea10cc;hb=53e6c3440afd81d1504db75e7fa8d09229641079;hpb=b8287ec997b2d426818fc095f2e4b49ec95d9f49 diff --git a/resources/tools/presentation/run_report.sh b/resources/tools/presentation/run_report.sh index 0438248b8f..81188e73ff 100755 --- a/resources/tools/presentation/run_report.sh +++ b/resources/tools/presentation/run_report.sh @@ -9,36 +9,30 @@ typeset -A CFG 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: s3 config (until migrated to vault, then account will be reset) +mkdir -p ${HOME}/.aws +echo "[nomad-s3]" >> ${HOME}/.aws/config +echo "[nomad-s3] +aws_access_key_id = csit +aws_secret_access_key = Csit1234" >> ${HOME}/.aws/credentials # Install python dependencies: -pip install -r requirements.txt +pip3 install -r requirements.txt -export PYTHONPATH=`pwd` +export PYTHONPATH=`pwd`:`pwd`/../../../ python pal.py \ - --specification specification.yaml \ + --specification specifications/report \ --release ${RELEASE} \ - --version "w47" \ + --week "30" \ --logging INFO \ --force