2 # Copyright 2018 AT&T Intellectual Property. All rights reserved
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
18 sudo apt-get update -y
19 sudo apt-get install -y maven openjdk-8-jdk npm python-pip docker.io
20 sudo pip install docker-compose
22 git clone http://gerrit.onap.org/r/oparent
24 cp oparent/settings.xml $HOME/.m2
26 for comp in common drools-pdp drools-applications engine
29 git clone http://gerrit.onap.org/r/policy/$comp
34 for comp in policy-pe policy-drools
37 sudo docker build -t onap/$comp packages/docker/target/$comp
41 git clone http://gerrit.onap.org/r/policy/docker
45 chmod +x config/drools/drools-tweaks.sh
46 echo 192.168.0.10 > config/pe/ip_addr.txt
48 sudo -E docker-compose up -d