Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

How to setup CDS step by step:

Objective

The purpose of this page is to show how to run the Blueprints Processor microservice locally, using the docker-compose.yaml file provided in the project.

Check out the CDS' code

Check out the latest code from Gerrit: https://gerrit.onap.org/r/#/admin/projects/ccsdk/cds

Build CDS locally

In the checked out directory, type

mvn clean install -DskipTests=true -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dadditionalparam=-Xdoclint:none

Create the needed Docker images

The Blueprints Processor microservice project has a module, called distribution, that provides a docker-compose.yaml file that can be used to spin up Docker containers to run this microservice.

The first step is to create any custom image needed, by building the distribution module.  From the CDS home directory (where the code was checked out), navigate to the module:

    cd ms/blueprintsprocessor/

Build it using the Maven profile called Docker:

mvn clean install -Pdocker
image2019-3-28_18-59-56.png

Start Docker containers using docker-composer

Navigate to the docker-compose file in the distribution module:

    cd application/src/main/dc/

From there, start the containers(unfortunately, this default docker-compose.yaml does not work properly in my env, I have to revise it a little bit manully. Fast track, just copy https://gitlab.com/yanhuanwang/cds/blob/master/docker-compose.yaml):

    docker-compose up -d

This will spin the Docker containers declared inside the docker-compose.yaml file in the background:

To verify the logs generated by docker-composer, type:

    docker-compose logs -f

Testing the environment

create CBA file:

curl -u ccsdkapps:ccsdkapps http://localhost:8000/api/v1/blueprint-model/ | json_pp



  • No labels