style(ipsec): Unify mutiline strings
[csit.git] / resources / tools / presentation / run_convert.sh
1 #!/bin/bash
2
3 set -x
4
5 # set default values in config array
6 typeset -A CFG
7 typeset -A DIR
8
9 DIR[WORKING]=_tmp
10
11 # Create working directories
12 mkdir ${DIR[WORKING]}
13
14 # Create virtual environment
15 virtualenv -p $(which python3) ${DIR[WORKING]}/env
16 source ${DIR[WORKING]}/env/bin/activate
17
18 # FIXME: s3 config (until migrated to vault, then account will be reset)
19 mkdir -p ${HOME}/.aws
20 echo "[nomad-s3]" >> ${HOME}/.aws/config
21 echo "[nomad-s3]
22 aws_access_key_id = csit
23 aws_secret_access_key = Csit1234" >> ${HOME}/.aws/credentials
24
25 # Install python dependencies:
26 pip3 install -r requirements.txt
27
28 export PYTHONPATH=`pwd`:`pwd`/../../../
29
30 python pal.py \
31     --specification specifications/converter \
32     --logging INFO \
33
34 RETURN_STATUS=$(echo $?)
35 exit ${RETURN_STATUS}