Jim Hahn | b3a962f | 2021-05-12 11:33:43 -0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # ============LICENSE_START======================================================= |
| 3 | # Copyright 2017-2021 AT&T Intellectual Property. All rights reserved. |
arkadiusz.adamski | 2b1e8d0 | 2021-05-24 12:50:40 +0100 | [diff] [blame] | 4 | # Modification Copyright 2021. Nordix Foundation. |
Jim Hahn | b3a962f | 2021-05-12 11:33:43 -0400 | [diff] [blame] | 5 | # ================================================================================ |
| 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========================================================= |
| 20 | source ${SCRIPTS}/get-branch-mariadb.sh |
| 21 | |
| 22 | # OS upgrades |
| 23 | |
| 24 | echo "Uninstall docker-py and reinstall docker." |
Jim Hahn | fe3e91c | 2021-06-04 13:22:49 -0400 | [diff] [blame] | 25 | python3 -m pip uninstall -y docker-py |
| 26 | python3 -m pip uninstall -y docker |
| 27 | python3 -m pip install -U docker |
Jim Hahn | b3a962f | 2021-05-12 11:33:43 -0400 | [diff] [blame] | 28 | |
| 29 | sudo apt-get -y install libxml2-utils |
| 30 | |
| 31 | source ${SCRIPTS}/detmVers.sh |
| 32 | |
| 33 | docker-compose -f ${SCRIPTS}/docker-compose-all.yml up -d drools |
| 34 | |
| 35 | POLICY_DROOLS_IP=`get-instance-ip.sh drools` |
| 36 | MARIADB_IP=`get-instance-ip.sh mariadb` |
| 37 | |
| 38 | echo DROOLS IP IS ${POLICY_DROOLS_IP} |
| 39 | echo 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 |
| 45 | sleep 15 |
| 46 | |
| 47 | ROBOT_VARIABLES="-v POLICY_DROOLS_IP:${POLICY_DROOLS_IP}" |