3 # ===========LICENSE_START====================================================
4 # Copyright (C) 2019-2021 AT&T Intellectual Property. All rights reserved.
5 # Modification Copyright 2021. Nordix Foundation.
6 # ============================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 # ============LICENSE_END=====================================================
20 source ${SCRIPTS}/get-branch-mariadb.sh
22 echo "Uninstall docker-py and reinstall docker."
23 python3 -m pip uninstall -y docker-py
24 python3 -m pip uninstall -y docker
25 python3 -m pip install -U docker
27 sudo apt-get -y install libxml2-utils
29 bash ${SCRIPTS}/get-models-examples.sh
30 source ${SCRIPTS}/detmVers.sh
32 docker-compose -f ${SCRIPTS}/docker-compose-all.yml up -d drools-apps
34 unset http_proxy https_proxy
36 DROOLS_IP=`get-instance-ip.sh drools-apps`
37 API_IP=`get-instance-ip.sh policy-api`
38 PAP_IP=`get-instance-ip.sh policy-pap`
39 XACML_IP=`get-instance-ip.sh policy-xacml-pdp`
40 SIM_IP=`get-instance-ip.sh message-router`
43 echo DROOLS IP IS ${DROOLS_IP}
44 echo API IP IS ${API_IP}
45 echo PAP IP IS ${PAP_IP}
46 echo XACML IP IS ${XACML_IP}
47 echo SIMULATORS IP IS ${SIM_IP}
49 # wait for the app to start up
50 ${SCRIPTS}/wait_for_port.sh ${DROOLS_IP} 6969
52 # give enough time for the controllers to come up
55 DATA=${WORKSPACE}/models/models-examples/src/main/resources/policies
56 DATA2=${TESTPLANDIR}/tests/data
59 ROBOT_VARIABLES="${ROBOT_VARIABLES} -v SCR2:${SCRIPTS}"
60 ROBOT_VARIABLES="${ROBOT_VARIABLES} -v DATA:${DATA}"
61 ROBOT_VARIABLES="${ROBOT_VARIABLES} -v DATA2:${DATA2}"
62 ROBOT_VARIABLES="${ROBOT_VARIABLES} -v DROOLS_IP:${DROOLS_IP}"
63 ROBOT_VARIABLES="${ROBOT_VARIABLES} -v API_IP:${API_IP}"
64 ROBOT_VARIABLES="${ROBOT_VARIABLES} -v PAP_IP:${PAP_IP}"
65 ROBOT_VARIABLES="${ROBOT_VARIABLES} -v XACML_IP:${XACML_IP}"
66 ROBOT_VARIABLES="${ROBOT_VARIABLES} -v SIM_IP:${SIM_IP}"