Implement DMaaP message handling from policy
[dcaegen2/services/son-handler.git] / README.md
1 SONHMS 
2
3 ### Build Instructions
4
5 This project is organized as a mvn project and has "org.onap.dcaegen2" as parent project. The build generate a jar and package into docker container. 
6
7 ```
8 git clone https://gerrit.onap.org/r/dcaegen2/services/son-handler
9 mvn clean install
10 ```
11
12
13 ### Environment variables in Docker Container
14
15
16 Variables coming from deployment system:
17
18 - APP_NAME - son-handler application name that will be registered with consul
19 - CONSUL_PROTOCOL - Consul protocol by default set to **http**, if it is need to change it then that can be set to different value 
20 - CONSUL_HOST - used with conjunction with CBSPOLLTIMER, should be a host address (without port! e.g my-ip-or-host) where Consul service lies
21 - CBS_PROTOCOL - Config Binding Service protocol by default set to **http**, if it is need to change it then that can be set to different value
22 - CONFIG_BINDING_SERVICE - used with conjunction with CBSPOLLTIMER, should be a name of CBS as it is registered in Consul
23 - HOSTNAME - used with conjunction with CBSPOLLTIMER, should be a name of sonhms application as it is registered in CBS catalog
24 ### Release images
25 For R4 - image/version  pushed to nexus3 
26 ```
27 nexus3.onap.org:10001/snapshots/onap/org.onap.dcaegen2.services.son-handler   1.0.0
28 ```
29
30 ### Deployment
31 son handler can be manually deployed in dcae environment using cloudify blueprint.
32
33 login to bootstrap container in dcae deployment
34
35 Copy the blueprints to the bootstrap container.
36
37 The blueprint can be found under dpo/blueprints in the son-handler project.
38
39 To install : 
40         cfy install -b sonhms -d sonhms -i <inputs filepath> <blueprint filepath> 
41
42 To uninstall:
43         cfy uninstall sonhms
44         cfy blueprints delete sonhms
45
46