diff options
author | 2020-08-03 16:08:41 +0530 | |
---|---|---|
committer | 2020-08-07 18:04:09 +0530 | |
commit | 59af21d85188c9538cdd3b784feffa94fa645aa5 (patch) | |
tree | fdc7d090c705497a6057a69360f34369e2c4135e /components/slice-analysis-ms/README.md | |
parent | 241494cef9587dd2834e4192c71437a1741d9553 (diff) |
Add seed code for slice-analysis-ms
Issue-ID: DCAEGEN2-2376
Signed-off-by: Reshmasree <reshmasree.chamarthi2@wipro.com>
Change-Id: I946ebb346f8a77c22aa4c7590a077c8b3b7d1aa2
Diffstat (limited to 'components/slice-analysis-ms/README.md')
-rw-r--r-- | components/slice-analysis-ms/README.md | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/components/slice-analysis-ms/README.md b/components/slice-analysis-ms/README.md new file mode 100644 index 00000000..c268789f --- /dev/null +++ b/components/slice-analysis-ms/README.md @@ -0,0 +1,39 @@ +SLICE-ANALYSIS-MS + +### Build Instructions + +This project is organized as a mvn project and is a sub-project of dcaegen2/services (inside components directory). The build generate a jar and package into docker container. + +``` +git clone https://gerrit.onap.org/r/dcaegen2/services +To build slice-analysis-ms run `mvn clean install` from **components/slice-analysis-ms** directory +To build docker image run `mvn clean install docker:build` +``` + + +### Environment variables in Docker Container + + +Variables coming from deployment system: + +- APP_NAME - slice-analysis-ms application name that will be registered with consul +- CONSUL_PROTOCOL - Consul protocol by default set to **https**, 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 **https**, 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 slice-analysis-ms application as it is registered in CBS catalog + + +### Deployment + + +### Standalone deployment +Slice analysis ms 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 |