blob: 6b02e76a5dff1e3947ac5258e4aec0cd20462562 [file] [log] [blame]
Jim Hahnb3a962f2021-05-12 11:33:43 -04001#!/bin/bash
2# ============LICENSE_START=======================================================
3# Copyright 2017-2021 AT&T Intellectual Property. All rights reserved.
arkadiusz.adamski2b1e8d02021-05-24 12:50:40 +01004# Modification Copyright 2021. Nordix Foundation.
Jim Hahnb3a962f2021-05-12 11:33:43 -04005# ================================================================================
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18# SPDX-License-Identifier: Apache-2.0
19# ============LICENSE_END=========================================================
20source ${SCRIPTS}/get-branch-mariadb.sh
21
22# OS upgrades
23
24echo "Uninstall docker-py and reinstall docker."
Jim Hahnfe3e91c2021-06-04 13:22:49 -040025python3 -m pip uninstall -y docker-py
26python3 -m pip uninstall -y docker
27python3 -m pip install -U docker
Jim Hahnb3a962f2021-05-12 11:33:43 -040028
29sudo apt-get -y install libxml2-utils
30
31source ${SCRIPTS}/detmVers.sh
32
33docker-compose -f ${SCRIPTS}/docker-compose-all.yml up -d drools
34
35POLICY_DROOLS_IP=`get-instance-ip.sh drools`
36MARIADB_IP=`get-instance-ip.sh mariadb`
37
38echo DROOLS IP IS ${POLICY_DROOLS_IP}
39echo MARIADB IP IS ${MARIADB_IP}
40
41# wait for the app to start up - looking for telemtry service on port 9696
42${SCRIPTS}/wait_for_port.sh ${POLICY_DROOLS_IP} 9696
43
44# give enough time for the controllers to come up
45sleep 15
46
47ROBOT_VARIABLES="-v POLICY_DROOLS_IP:${POLICY_DROOLS_IP}"