blob: 3a8e73283c2c1def7f860ccf4c0a5c28a9f15302 [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
7Environment
8===========
9Bus Controller is developed using Postgresql. An embedded Jetty server is used to create the REST service.
10The service is packaged as a Docker container image.
11Helm charts for Bus Controller are part of the overall dmaap chart set.
12
13Steps for OOM Deployment
14------------------------
15
161) Clone the oom repo
172) cd oom/kubernetes
183) (optionally, customize the buscontroller configuration - see below)
194) make dmaap
205) helm install dmaap --name=dmaap --namespace=mr
21
22
23Customizing the Bus Controller configuration
24--------------------------------------------
25
26The Bus Controller is highly configurable, but by default has settings that should work for a standard ONAP oom deployment.
27However, if some customization is desired, there are places to change behavior:
281) 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.
292) oom/kubernetes/dmaap/charts/dmaap-bus-controller/values.yaml contains the set of tags used within the charts. These can be modified if necessary.
303) 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.
314) 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.
32
sandovalfr55cba2c2019-03-14 17:07:14 -060033
34Steps for local development and test
Tomek Kaminskie892caf2019-05-21 16:14:01 +020035------------------------------------
sandovalfr55cba2c2019-03-14 17:07:14 -060036On Intel dev machine, in terminal (> indicates prompt) :
371) Build buscontroller images
38 > git clone https://gerrit.onap.org/r/dmaap/buscontroller
39 - anonymous http, can't push changes
40 > cd buscontroller
41 > mvn clean install -Pdocker
42 - builds dmaap-bc and dbc-client images
Tomek Kaminskie892caf2019-05-21 16:14:01 +0200432) Run tests
sandovalfr55cba2c2019-03-14 17:07:14 -060044 > cd dmaap-bc/src/main/resources/
45 > cp docker-databus-controller.conf /var/tmp/
46 - set docker preferences/file sharing to access /var/tmp
47 - edit docker-compose.yml
Tomek Kaminskie892caf2019-05-21 16:14:01 +020048 - remove "nexus3.onap.org:10001/" from dmaap-bc:image: and dbc-client:image: to
sandovalfr55cba2c2019-03-14 17:07:14 -060049 use local images
50 > docker-compose up -d
51 - create sample.txt file (as above)(content of file not important)
52 > curl http://localhost:30241/webapi/bridge
53
54On Arm:
551) Build buscontroller images
56 > git clone https://gerrit.onap.org/r/dmaap/buscontroller
57 - anonymous http, can't push changes
58 > cd buscontroller
59 > mvn clean install -Pdocker -Ddocker.pull.registry=docker.io
60 - ensure we pull Arm version of base image
Tomek Kaminskie892caf2019-05-21 16:14:01 +0200612) Run tests
sandovalfr55cba2c2019-03-14 17:07:14 -060062 > cd dmaap-bc/src/main/resources/
63 > cp docker-databus-controller.conf /var/tmp/
64 - set docker preferences/file sharing to access /var/tmp
65 - edit docker-compose.yml
Tomek Kaminskie892caf2019-05-21 16:14:01 +020066 - remove "nexus3.onap.org:10001/" from dmaap-bc:image: and dbc-client:image: to
sandovalfr55cba2c2019-03-14 17:07:14 -060067 use local images
68 - replace 'crunchydata/crunchy-postgres:centos7-10.4-2.0.0' with
69 multi-platform 'postgres:9.6-alpine' normative image
70 > docker-compose up -d
71 - create sample.txt file (as above)(content of file not important)
72 > curl http://localhost:30241/webapi/bridge
73