blob: 3f308138f4b7ed2a28db5355d50c9d74798f5cb2 [file] [log] [blame]
Ezhilarasib651ae32019-03-25 15:53:07 +05301.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.
3.. Copyright (C) 2019 IBM.
4
5Blueprints Processor
6====================
7
8.. toctree::
9 :maxdepth: 1
10 :titlesonly:
11
12Micro service to Manage Controller Blueprint Models, such as Resource Dictionary, Service Models, Velocity Templates etc, which will serve service for Controller Design Studio and Controller runtimes.
13
Ezhilarasia27d27e2019-04-16 16:28:47 +053014This microservice is used to deploy Controller Blueprint Archive file in Run time database. This also helps to test the Valid Blueprint.
15
Ezhilarasib651ae32019-03-25 15:53:07 +053016Architecture:
Ezhilaraside33f3c2019-07-05 13:29:54 +053017-------------
Ezhilarasib651ae32019-03-25 15:53:07 +053018
19|image0|
20
21.. |image0| image:: images/blueprintprocessor.jpg
22 :height: 600px
Ezhilarasia27d27e2019-04-16 16:28:47 +053023 :width: 800px
24
25Running Blueprints Processor Microservice Locally:
Ezhilaraside33f3c2019-07-05 13:29:54 +053026--------------------------------------------------
Ezhilarasia27d27e2019-04-16 16:28:47 +053027
28The 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.
29
30Check out the CDS' code:
31
32Check out the latest code from Gerrit: https://gerrit.onap.org/r/#/admin/projects/ccsdk/cds
33
34Build CDS locally:
35In the checked out directory, type
36
37 mvn clean install -DskipTests=true -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dadditionalparam=-Xdoclint:none
38
39Create the needed Docker images:
40
41The 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.
42
43The 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:
44
45 cd ms/blueprintsprocessor/distribution/
46Build it using the Maven profile called Docker:
47
48 mvn clean install -Pdocker
49
50Start Docker containers using docker-composer:
Ezhilaraside33f3c2019-07-05 13:29:54 +053051----------------------------------------------
Ezhilarasia27d27e2019-04-16 16:28:47 +053052
53Navigate to the docker-compose file in the distribution module:
54
55 cd src/main/dc/
56
57From there, start the containers:
58
59 docker-compose up -d
60This will spin the Docker containers declared inside the docker-compose.yaml file in the background.
61
62
63To verify the logs generated by docker-composer, type:
64
65 docker-compose logs -f
66
67
68Testing the environment:
Ezhilaraside33f3c2019-07-05 13:29:54 +053069------------------------
Ezhilarasia27d27e2019-04-16 16:28:47 +053070
71Point your browser to http://localhost:8000/api/v1/execution-service/ping (please note that the port is 8000, not 8080)
72
73To authenticate, use ccsdkapps / ccsdkapps as login / password.