commit | 7228882abaed47068a8efd400ca7d2a13bfa1c6b | [log] [tgz] |
---|---|---|
author | liamfallon <liam.fallon@ericsson.com> | Wed Feb 14 12:11:30 2018 +0000 |
committer | liamfallon <liam.fallon@ericsson.com> | Mon Feb 19 17:10:42 2018 +0000 |
tree | 15d13fa471b6ef74bfa8acb39ec5215cc99bbd84 | |
parent | 2885c31075bbb8e87b67c425b11f19fdbac6236a [diff] |
Rename maven modules in drools-applications The dependency on drools-applications "apps" module changes name to "controlloop.common.apps" See https://gerrit.onap.org/r/#/c/31593/2 Change-Id: Iaf8b791f015ff50664c194976a9a2c84453e6e7b Issue-ID: POLICY-238 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
This source repository contains the files for building the ONAP Policy Engine Docker images.
To build it using Maven 3, first build 'policy/common', 'policy/engine', 'policy/drools-pdp', and 'policy/drools-applications' repositories, and then run: mvn prepare-package. This will pull the installation zip files needed for building the policy-pe and policy-drools Docker images into the target directory. It will not actually build the docker images; the following additional steps are needed to accomplish this:
For example: docker build -t onap/policy/policy-os policy-os docker build -t onap/policy/policy-db policy-db docker build -t onap/policy/policy-nexus policy-nexus docker build -t onap/policy/policy-base policy-base docker build -t onap/policy/policy-pe target/policy-pe docker build -t onap/policy/policy-drools target/policy-drools
In addition, the 'config' directory contains configuration files that are read during the startup of the containers; this directory is referenced by the docker-compose.yml file.
If you want to call the docker-compose, the following needs to be setup before doing so:
chmod +x config/drools/drools-tweaks.sh IP_ADDRESS=$(ifconfig eth0 | grep "inet addr" | tr -s ' ' | cut -d' ' -f3 | cut -d':' -f2) echo $IP_ADDRESS > config/pe/ip_addr.txt
If you do not want the policies pre-loaded, then set this environment variable to false:
export PRELOAD_POLICIES=false
It will override the settings in the .env file. Which is set to true.