blob: 1727bf1f4d1f66aea9efbabc5e61ef29bb743e7d (
plain)
ofs | hex dump | ascii |
---|
0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 06 01 00 00 03 85 08 02 00 00 00 cc 0b d5 | .PNG........IHDR................ |
0020 | ce 00 00 00 01 73 52 47 42 00 ae ce 1c e9 00 00 00 04 67 41 4d 41 00 00 b1 8f 0b fc 61 05 00 00 | .....sRGB.........gAMA......a... |
0040 | 00 09 70 48 59 73 00 00 12 74 00 00 12 74 01 de 66 1f 78 00 00 ff a5 49 44 41 54 78 5e ec fd 07 | ..pHYs...t...t..f.x....IDATx^... |
0060 | 94 24 d9 79 98 89 86 8f f4 be bc b7 ed bb a7 cd 4c cf f4 38 60 08 10 9c 01 06 66 29 12 00 49 49 | .$.y............L..8`.....f)..II |
0080 | 4f 94 16 7c 14 56 4b 68 df d3 39 bb 2b 6a b5 ab a3 d5 1e 1e e9 ec 03 b9 e7 e8 2c 00 1d 2e 29 1a | O..|.VKh..9.+j............,...). |
00a0 | 10 24 08 33 03 cc 0c fc 18 8c 6f df 55 ed aa bb cb db f4 3e c3 bf ff 46 44 65 65 65 a5 89 cc ca | .$.3......o.U......>...FDeee.... |
00c0 | ac ae e9 b9 5f 47 67 45 dc 7b e3 de ff bf e6 bf 26 1c 39 37 37 f7 fb bf ff fb 2f bd f4 12 81 c1 | ...._GgE.{......&.977...../..... |
00e0 | 60 30 18 0c 06 83 c1 60 30 18 0c 06 83 79 40 a1 54 55 35 77 31 18 0c 06 83 c1 60 30 18 0c 06 83 | `0.....`0....y@.TU5w1.....`0.... |
0100 | c1 60 30 0f 28 94 a6 69 e6 2e 06 83 c1 60 30 18 0c 06 83 c1 60 30 18 0c e6 01 05 af 01 61 30 18 | .`0.(..i.....`0.....`0.......a0. |
0120 | 0c 06 83 c1 60 30 18 0c 06 83 c1 3c f8 e0 67 c1 30 18 0c 06 83 c1 60 30 18 0c 06 83 c1 60 1e 7c | ....`0.....<..g.0.....`0.....`.| |
0140 | d0 7d .. This work is licensed under a
.. Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
Policy Docker Installation
--------------------------
.. contents::
:depth: 2
Building the ONAP Policy Framework Docker Images
************************************************
The instructions here are based on the instructions in the file *~/git/onap/policy/docker/README.md*.
**Step 1:** Build the Policy API Docker image
.. code-block:: bash
cd ~/git/onap/policy/api/packages
mvn clean install -P docker
**Step 2:** Build the Policy PAP Docker image
.. code-block:: bash
cd ~/git/onap/policy/pap/packages
mvn clean install -P docker
**Step 3:** Build the Drools PDP docker image.
This image is a standalone vanilla Drools engine, which does not contain any pre-built drools rules or applications.
.. code-block:: bash
cd ~/git/onap/policy/drools-pdp/
mvn clean install -P docker
**Step 4:** Build the Drools Application Control Loop image.
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.
.. code-block:: bash
cd ~/git/onap/policy/drools-applications
mvn clean install -P docker
**Step 5:** Build the Apex PDP docker image:
.. code-block:: bash
cd ~/git/onap/policy/apex-pdp
mvn clean install -P docker
**Step 6:** Build the XACML PDP docker image:
.. code-block:: bash
cd ~/git/onap/policy/xacml-pdp/packages
mvn clean install -P docker
**Step 7:** Build the policy engine docker image (If working with the legacy Policy Architecture/API):
.. code-block:: bash
cd ~/git/onap/policy/engine/
mvn clean install -P docker
**Step 8:** Build the Policy SDC Distribution docker image:
.. code-block:: bash
cd ~/git/onap/policy/distribution/packages
mvn clean install -P docker
Starting the ONAP Policy Framework Docker Images
************************************************
In order to run the containers, you can use *docker-compose*. This uses the *docker-compose.yml* yaml file to bring up the ONAP Policy Framework. This file is located in the policy/docker repository.
**Step 1:** Set the environment variable *MTU* to be a suitable MTU size for the application.
.. code-block:: bash
export MTU=9126
**Step 2:** Determine if you want the legacy Policy Engine to have policies pre-loaded or not. By default, all the configuration and operational policies will be pre-loaded by the docker compose script. If you do not wish for that to happen, then export this variable:
.. note:: This applies ONLY to the legacy Engine and not the Policy Lifecycle polices
.. code-block:: bash
export PRELOAD_POLICIES=false
**Step 3:** Run the system using *docker-compose*. Note that on some systems you may have to run the *docker-compose* command as root or using *sudo*. Note that this command takes a number of minutes to execute on a laptop or desktop computer.
.. code-block:: bash
docker-compose up -d
**You now have a full standalone ONAP Policy framework up and running!**
|