blob: cee606c0ae1fff3de5115f0d2bfd1489a516ca0c [file] [log] [blame]
dglFromAtt366e5f72018-10-25 14:19:21 +00001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3
4Installation
5============
6
dglFromAtt366e5f72018-10-25 14:19:21 +00007Bus Controller is developed using Postgresql. An embedded Jetty server is used to create the REST service.
8The service is packaged as a Docker container image.
9Helm charts for Bus Controller are part of the overall dmaap chart set.
10
11Steps for OOM Deployment
12------------------------
13
141) Clone the oom repo
152) cd oom/kubernetes
163) (optionally, customize the buscontroller configuration - see below)
174) make dmaap
185) helm install dmaap --name=dmaap --namespace=mr
19
20
21Customizing the Bus Controller configuration
22--------------------------------------------
23
24The Bus Controller is highly configurable, but by default has settings that should work for a standard ONAP oom deployment.
25However, if some customization is desired, there are places to change behavior:
efiacor71d3d092021-04-08 16:40:06 +010026
dglFromAtt366e5f72018-10-25 14:19:21 +0000271) The --namespace argument of the helm install step is also refernced to compose the topic namespace used. i.e. the value is appended to org.onap.dmaap. Since Message Router uses org.onap.dmaap.mr by default, we also use --namespace=mr. But this can be changed to a value that matches a different deployment of MR.
282) oom/kubernetes/dmaap/charts/dmaap-bus-controller/values.yaml contains the set of tags used within the charts. These can be modified if necessary.
293) oom/kubernetes/dmaap/charts/dmaap-bus-controller/resources/config/buscontroller.env contains some environment settings for the container. These can be modified. For example, to indicate that AAF integration should be enabled, set USE_AAF=true in this file.
304) oom/kubernetes/dmaap/charts/dmaap-bus-controller/resources/config/dmaapbc.properties contains many properties which can be modified. For example, if a differerent Postgresql instance needed to be used, the value could be specified here.
31
sandovalfr55cba2c2019-03-14 17:07:14 -060032
33Steps for local development and test
Tomek Kaminskie892caf2019-05-21 16:14:01 +020034------------------------------------
sandovalfr55cba2c2019-03-14 17:07:14 -060035On Intel dev machine, in terminal (> indicates prompt) :
361) Build buscontroller images
37 > git clone https://gerrit.onap.org/r/dmaap/buscontroller
38 - anonymous http, can't push changes
39 > cd buscontroller
efiacor71d3d092021-04-08 16:40:06 +010040 > mvn clean install -P docker
sandovalfr55cba2c2019-03-14 17:07:14 -060041 - builds dmaap-bc and dbc-client images
Tomek Kaminskie892caf2019-05-21 16:14:01 +0200422) Run tests
sandovalfr55cba2c2019-03-14 17:07:14 -060043 > cd dmaap-bc/src/main/resources/
44 > cp docker-databus-controller.conf /var/tmp/
45 - set docker preferences/file sharing to access /var/tmp
46 - edit docker-compose.yml
Tomek Kaminskie892caf2019-05-21 16:14:01 +020047 - remove "nexus3.onap.org:10001/" from dmaap-bc:image: and dbc-client:image: to
sandovalfr55cba2c2019-03-14 17:07:14 -060048 use local images
49 > docker-compose up -d
50 - create sample.txt file (as above)(content of file not important)
51 > curl http://localhost:30241/webapi/bridge
52
53On Arm:
541) Build buscontroller images
55 > git clone https://gerrit.onap.org/r/dmaap/buscontroller
56 - anonymous http, can't push changes
57 > cd buscontroller
efiacor71d3d092021-04-08 16:40:06 +010058 > mvn clean install -P docker -Ddocker.pull.registry=docker.io
sandovalfr55cba2c2019-03-14 17:07:14 -060059 - ensure we pull Arm version of base image
Tomek Kaminskie892caf2019-05-21 16:14:01 +0200602) Run tests
sandovalfr55cba2c2019-03-14 17:07:14 -060061 > cd dmaap-bc/src/main/resources/
62 > cp docker-databus-controller.conf /var/tmp/
63 - set docker preferences/file sharing to access /var/tmp
64 - edit docker-compose.yml
Tomek Kaminskie892caf2019-05-21 16:14:01 +020065 - remove "nexus3.onap.org:10001/" from dmaap-bc:image: and dbc-client:image: to
sandovalfr55cba2c2019-03-14 17:07:14 -060066 use local images
67 - replace 'crunchydata/crunchy-postgres:centos7-10.4-2.0.0' with
68 multi-platform 'postgres:9.6-alpine' normative image
69 > docker-compose up -d
70 - create sample.txt file (as above)(content of file not important)
71 > curl http://localhost:30241/webapi/bridge
72