blob: 6b951356cc80a61c5c19051d0d72ed3bc2a02930 [file] [log] [blame]
Bilal Ab4bf5da2019-03-14 16:45:23 +00001#!/bin/bash
a.sreekumar20705742020-02-14 12:03:33 +00002# ============LICENSE_START=======================================================
3# Copyright 2017-2020 AT&T Intellectual Property. All rights reserved.
4# ================================================================================
Bilal Ab4bf5da2019-03-14 16:45:23 +00005# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
a.sreekumar20705742020-02-14 12:03:33 +000017# SPDX-License-Identifier: Apache-2.0
18# ============LICENSE_END=========================================================
Bilal Ab4bf5da2019-03-14 16:45:23 +000019
a.sreekumar20705742020-02-14 12:03:33 +000020# OS upgrades
jhhde399b02019-04-29 20:17:45 -050021
a.sreekumar20705742020-02-14 12:03:33 +000022echo "Uninstall docker-py and reinstall docker."
23pip uninstall -y docker-py
24pip uninstall -y docker
25pip install -U docker==2.7.0
Bilal Ab4bf5da2019-03-14 16:45:23 +000026
a.sreekumar20705742020-02-14 12:03:33 +000027# Component Versions
28
29source ${SCRIPTS}/policy/config/policy-csit.conf
a.sreekumar20705742020-02-14 12:03:33 +000030
31sudo apt-get -y install libxml2-utils
a.sreekumar20705742020-02-14 12:03:33 +000032
Jim Hahn00532422020-09-17 17:03:34 -040033source ${SCRIPTS}/policy/detmVers.sh
a.sreekumar20705742020-02-14 12:03:33 +000034
Jim Hahn00532422020-09-17 17:03:34 -040035docker-compose -f ${SCRIPTS}/policy/docker-compose-all.yml up -d drools
a.sreekumar20705742020-02-14 12:03:33 +000036
37POLICY_DROOLS_IP=`get-instance-ip.sh drools`
38MARIADB_IP=`get-instance-ip.sh mariadb`
39
40echo DROOLS IP IS ${POLICY_DROOLS_IP}
41echo MARIADB IP IS ${MARIADB_IP}
42
Jim Hahn00532422020-09-17 17:03:34 -040043# wait for the app to start up - looking for telemtry service on port 9696
44${SCRIPTS}/policy/wait_for_port.sh ${POLICY_DROOLS_IP} 9696
45
46# give enough time for the controllers to come up
47sleep 15
a.sreekumar20705742020-02-14 12:03:33 +000048
49ROBOT_VARIABLES="-v POLICY_DROOLS_IP:${POLICY_DROOLS_IP}"