aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 9db97055b1886500b1be7a5fb804f5e9b8ab1f81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
SONHMS 

### Build Instructions

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. 

```
git clone https://gerrit.onap.org/r/dcaegen2/services/son-handler
mvn clean install
mvn clean install docker:build
```


### Environment variables in Docker Container


Variables coming from deployment system:

- APP_NAME - son-handler application name that will be registered with consul
- CONSUL_PROTOCOL - Consul protocol by default set to **http**, if it is need to change it then that can be set to different value 
- CONSUL_HOST - used with conjunction with CBSPOLLTIMER, should be a host address (without port! e.g my-ip-or-host) where Consul service lies
- 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
- CONFIG_BINDING_SERVICE - used with conjunction with CBSPOLLTIMER, should be a name of CBS as it is registered in Consul
- HOSTNAME - used with conjunction with CBSPOLLTIMER, should be a name of sonhms application as it is registered in CBS catalog
### Release images
For R4 - image/version  pushed to nexus3 
```
nexus3.onap.org:10001/snapshots/onap/org.onap.dcaegen2.services.son-handler   1.0.0
```

### Deployment
son handler can be manually deployed in dcae environment using cloudify blueprint.

login to bootstrap container in dcae deployment

Copy the blueprints to the bootstrap container.

The blueprint can be found under dpo/blueprints in the son-handler project.

To install : 
	cfy install -b sonhms -d sonhms -i <inputs filepath> <blueprint filepath> 

To uninstall:
	cfy uninstall sonhms
	cfy blueprints delete sonhms


### Standalone deployment
son handler can be deployed standalone using docker-compose.

Navigate to src/main/docker directory. docker-compose.yaml can be found there.

To install :
    docker-compose up

To uninstall :
    docker-compose down