1 .. This work is licensed under a
2 .. Creative Commons Attribution 4.0 International License.
3 .. http://creativecommons.org/licenses/by/4.0
6 Policy Docker Installation
7 --------------------------
13 Starting the ONAP Policy Framework Docker Images
14 ************************************************
15 In order to start the containers, you can use *docker-compose*. This uses the *docker-compose-all.yml* yaml file to bring up the ONAP Policy Framework. This file is located in the policy/docker repository. In the csit folder there are scripts to *automatically* bring up components in Docker, without the need to build all the images locally.
17 Clone the read-only version of policy/docker repo from gerrit:
21 git clone "https://gerrit.onap.org/r/policy/docker"
24 Start the containers automatically
25 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 .. note:: The start-all.sh script in policy/docker/csit will bring up all the Policy Framework components, and give the local ip for the GUI. The latest images will be downloaded from Nexus.
31 export CONTAINER_LOCATION=nexus3.onap.org:10001/
36 To stop them use ./stop-all.sh
43 Start the containers manually
44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46 **Step 1:** Set the containers location and project.
48 For *local* images, set CONTAINER_LOCATION="" (or don't set it at all)
49 *You will need to build locally all the images using the steps in the next chapter*
51 For *remote* images set CONTAINER_LOCATION="nexus3.onap.org:10001/"
55 export CONTAINER_LOCATION=nexus3.onap.org:10001/
59 **Step 2:** Set gerrit branch
61 Set GERRIT_BRANCH="master"
63 Or use the script get-branch.sh
67 source ./get-branch.sh
70 **Step 3:** Get all the images versions
72 Use the script get-versions.sh
76 source ./get-versions.sh
79 **Step 4:** Run the system using docker-compose
83 docker-compose -f docker-compose-all.yml up <image> <image>
86 **You now have a full standalone ONAP Policy framework up and running!**
89 Building the ONAP Policy Framework Docker Images
90 ************************************************
91 If you want to use your own local images, you can build them following these instructions:
93 **Step 1:** Build the Policy API Docker image
97 cd ~/git/onap/policy/api/packages
98 mvn clean install -P docker
100 **Step 2:** Build the Policy PAP Docker image
104 cd ~/git/onap/policy/pap/packages
105 mvn clean install -P docker
107 **Step 3:** Build the Drools PDP docker image.
109 This image is a standalone vanilla Drools engine, which does not contain any pre-built drools rules or applications.
113 cd ~/git/onap/policy/drools-pdp/
114 mvn clean install -P docker
116 **Step 4:** Build the Drools Application Control Loop image.
118 This image has the drools use case application and the supporting software built together with the Drools PDP engine. It is recommended to use this image if you are first working with ONAP Policy and wish to test or learn how the use cases work.
122 cd ~/git/onap/policy/drools-applications
123 mvn clean install -P docker
125 **Step 5:** Build the Apex PDP docker image:
129 cd ~/git/onap/policy/apex-pdp
130 mvn clean install -P docker
132 **Step 6:** Build the XACML PDP docker image:
136 cd ~/git/onap/policy/xacml-pdp/packages
137 mvn clean install -P docker
139 **Step 7:** Build the Policy SDC Distribution docker image:
143 cd ~/git/onap/policy/distribution/packages
144 mvn clean install -P docker