Fix wrong sdc-distribution-client version

The pom file specifies a version that isn't the one currently build.
The current version is 1.0.0-SNAPSHOT, see https://gerrit.openecomp.org/r/gitweb?p=sdc/sdc-distribution-client.git;a=blob;f=pom.xml;h=be86365835d8f149a742ade80f6063e90052bfff;hb=refs/heads/master#l6

Change-Id: Ice85aabf5f0cfea913b83f5b12e8657858b27c69
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
1 file changed
tree: 5b5733f40972383974c80adb48b795c6d67e8e82
  1. src/
  2. .gitignore
  3. .gitreview
  4. License.txt
  5. pom.xml
  6. Readme.md
  7. version.properties
Readme.md

Introduction

The A&AI Model Loader Service is an application that facilitates distribution, ingestion of new service and resource models, and vnf catalogs from the SDC to the A&AI.

Features

The Model Loader:

  • registers with the SDC to receive notification events
  • polls the UEB/DMaap cluster for notification events
  • downloads artifacts from SDC upon receipt of a distribution event
  • pushes distribution components to A&AI

Compiling Model Loader

Model Loader can be compiled by running mvn clean install

Running Model Loader

Create a config file with the following key/values:

DISTR_CLIENT_ASDC_ADDRESS=<SDC_ADDRESS>
DISTR_CLIENT_CONSUMER_GROUP=<UEB_CONSUMER_GROUP>  ;;  Uniquely identiy this group of model loaders.
DISTR_CLIENT_CONSUMER_ID=<UEB_CONSUMER_GROUP_ID>  ;;  Uniquely identiythis model loader.
DISTR_CLIENT_ENVIRONMENT_NAME=<ENVIRONMENT_NAME>  ;;  Environment name configured on the SDC
DISTR_CLIENT_PASSWORD=<DISTR_PASSWORD>            ;;  Password to connect to SDC
DISTR_CLIENT_USER=<USER_ID>                       ;;  User name to connect to SDC
		     
APP_SERVER_BASE_URL=https://<aai-address>:8443    ;; AAI Address (URL)
APP_SERVER_AUTH_USER=<USER_ID>                    ;; User name to connect to AAI
APP_SERVER_AUTH_PASSWORD=<PASSWORD>               ;; Password to connect to AAi

Docker

Build your own Model Loader docker image and create docker containers

  1. mvn clean package docker:build ;; Build a docker image of Model Loader
  2. sudo docker images ;; list docker images and check if the image you build is listed.
  3. sudo docker run --env-file /opt/jetty/jetty*/bin/startup.sh

Retrieve logs from stopped container

  • docker cp :/opt/jetty/jetty-distribution-9.3.9.v20160517/logs/AAI-ML/error.log /tmp/