1 .. SPDX-License-Identifier: CC-BY-4.0
2 .. Copyright 2018 ORANGE
8 This document describes local installation for development purpose
9 It also describes some keypoints for understanding NBI in OOM context
18 * free port 8080, used by tests
24 Alternative 1 run SpringBoot application
25 ----------------------------------------
34 Review and edit *src/main/resources/application.properties*
38 Mongo, host=localhost, port=27017, database=ServiceOrderDB
40 Mariadb, url=jdbc:mariadb://localhost:3306/nbi, username=root,
47 Alternative 2 run docker
48 ------------------------
56 Edit *docker-compose.yml* to select previous generated local build, replace::
58 image: ${NEXUS_DOCKER_REPO}/onap/externalapi/nbi:latest
66 docker-compose up -d mongo mariadb
68 docker-compose up --build -d nbi
72 docker-compose logs -f nbi
78 Status is available at http://localhost:8080/nbi/api/v4/status
80 Running a standalone test::
82 curl "http://localhost:8080/nbi/api/v4/status"
97 Running a standalone test::
99 curl "https://nbi.api.simpledemo.onap.org:30274/nbi/api/v4/status"
107 Running an integration test with SO, SDC, DMAAP, AAI::
109 curl "https://nbi.api.simpledemo.onap.org:30274/nbi/api/v4/status?fullStatus=true"
117 "name": "so connectivity",
121 "name": "sdc connectivity",
125 "name": "dmaap connectivity",
129 "name": "aai connectivity",
135 **Understanding OOM deployment**
137 NBI uses AAF init container to generate valid server certificate, signed by
138 ONAP Root CA. This server certificate is used for TLS over HTTP.
140 Passing specific JAVA_OPTS to NBI SpringBoot java app will enable HTTPS.
142 Here are some OOM related files which could help to understand how HTTPS is
145 Search for JAVA_OPTS in
146 https://github.com/onap/oom/blob/master/kubernetes/nbi/templates/deployment.yaml
149 https://github.com/onap/oom/blob/master/kubernetes/nbi/values.yaml
152 https://github.com/onap/oom/blob/master/kubernetes/nbi/templates/configmap-aaf-add-config.yaml