Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Useing the dcae-cli Tool

...

to deploy a micro service through a component spec

Overview

The dcae-cli is a Python command-line tool for component developers. With it, the developer can :

...

  • ONAP deployment (3 node deployment is sufficient)
  • A Another single Ubuntu instance

...

  • (which we will install docker on)

Follow the below instructions step by step to install , validate component spec and deploy on local env:.

  • Execute the commands as a root user to avoid permission issues. 

Clone the repo onto one of the ONAP instanaces

Login to an instance on the onap deployment and switch to a root user.

root@excl-xxxxxx-lego-casablanca-node-3:~# git clone https://gerrit.onap.org/r/p/dcaegen2/platform/cli.git
Cloning into 'cli'...
remote: Counting objects: 2, done
remote: Finding sources: 100% (2/2)
remote: Total 507 (delta 0), reused 507 (delta 0)
Receiving objects: 100% (507/507), 384.30 KiB | 0 bytes/s, done.
Resolving deltas: 100% (179/179), done.
Checking connectivity... done.

...

pip install --upgrade onap-dcae-cli

Setup postgres database

Create a new postgres db.

(cli_tool) root@excl-xxxxxx-lego-casablanca-node-3:~# mkdir postgres

...

Login to the ubuntu VM, install docker and update it's configuration to accept tcp requests..here are the steps.

Login to the ubuntu instance.

...