blob: 31d93111d551c1ed5881c33fa19a6f23d5f363fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
echo "Uninstall docker-py and reinstall docker."
python3 -m pip uninstall -y docker-py
python3 -m pip uninstall -y docker
python3 -m pip install -U docker
python3 -m pip install -U robotframework-databaselibrary
python3 -m pip install psycopg2-binary
sudo apt-get -y install libxml2-utils
source "${SCRIPTS}"/get-versions.sh
cd "${SCRIPTS}"
docker-compose -f "${SCRIPTS}"/compose-postgres.yml up -d
sleep 15
unset http_proxy https_proxy
POSTGRES_IP=$(get-instance-ip.sh postgres)
POLICY_API_IP=$(get-instance-ip.sh policy-api)
echo POSTGRES IP IS "${POSTGRES_IP}"
echo POLICY_API_IP IS "${POLICY_API_IP}"
ROBOT_VARIABLES=""
ROBOT_VARIABLES="${ROBOT_VARIABLES} -v POSTGRES_IP:${POSTGRES_IP}"
ROBOT_VARIABLES="${ROBOT_VARIABLES} -v POLICY_API_IP:${POLICY_API_IP}"
|