blob: c29eca8d95c1c316079e089e0cd9b97de02956b5 [file] [log] [blame]
andreasgeissler6642a722019-05-31 12:23:38 +02001.. This work is licensed under a Creative Commons Attribution 4.0
2.. International License. http://creativecommons.org/licenses/by/4.0
Ezhilarasi59620872019-03-08 16:17:22 +05303.. Copyright (C) 2019 IBM.
4
andreasgeissler6642a722019-05-31 12:23:38 +02005.. _cds_cba-doc:
6
Ezhilarasi6cd7d6b2019-04-16 15:30:19 +05307Controller Blueprint Archived Designer Tool(CBA)
andreasgeissler6642a722019-05-31 12:23:38 +02008================================================
Ezhilarasi59620872019-03-08 16:17:22 +05309.. toctree::
10 :maxdepth: 1
Ezhilarasi59620872019-03-08 16:17:22 +053011
andreasgeissler6642a722019-05-31 12:23:38 +020012Introduction
13------------
14The Controller Blueprint Archived is the overall service design, fully
15model-driven, package needed to automate the resolution of resources for
16instantiation and any config provisioning operation, such as day0,
17day1 or day2 configuration.
18
19The CBA is .zip file, comprised of the following folder structure, the
20files may vary:
Ezhilarasi0f153092019-03-14 12:54:09 +053021
22|image0|
23
Ezhilarasi0f153092019-03-14 12:54:09 +053024
andreasgeissler6642a722019-05-31 12:23:38 +020025Architecture
26------------
Ezhilarasi0f153092019-03-14 12:54:09 +053027
Ezhilarasi91e83422019-03-15 14:30:05 +053028|image3|
29
andreasgeissler6642a722019-05-31 12:23:38 +020030
31Installation
32------------
33
34Building client html and js files
35.................................
36
37 * FROM alpine:3.8 as builder
38 * RUN apk add --no-cache npm
39 * WORKDIR /opt/cds-ui/client/
40 * COPY client/package.json /opt/cds-ui/client/
41 * RUN npm install
42 * COPY client /opt/cds-ui/client/
43 * RUN npm run build
44
45Building and creating server
46............................
47
48 * FROM alpine:3.8
49 * WORKDIR /opt/cds-ui/
50 * RUN apk add --no-cache npm
51 * COPY server/package.json /opt/cds-ui/
52 * RUN npm install
53 * COPY server /opt/cds-ui/
54 * COPY --from=builder /opt/cds-ui/server/public /opt/cds-ui/public
55 * RUN npm run build
56 * EXPOSE 3000
57 * CMD [ "npm", "start" ]
58
59Development
60-----------
61
62Pre-requiste
63............
64 * Visual Studio code editor
65 * Git bash
66 * Node.js & npm
67 * loopback 4 cl
68
69Steps
70.....
71 To compile CDS code:
72
73 1. Make sure your local Maven settings file ($HOME/.m2/settings.xml)
74 contains references to the ONAP repositories and OpenDaylight
75 repositories.
76 2. git clone https://(LFID)@gerrit.onap.org/r/a/ccsdk/cds
77 3. cd cds ; mvn clean install ; cd ..
78 4. Open the cds-ui/client code for development
79
80Functional Decomposition
81------------------------
82|image2|
83
84.. |image0| image:: media/image0.jpg
85 :width: 7.88889in
86 :height: 4.43750in
87
88.. |image2| image:: media/image2.jpg
89 :width: 7.88889in
90 :height: 4.43750in
91
Ezhilarasi91e83422019-03-15 14:30:05 +053092.. |image3| image:: media/CDS_architecture.jpg
93 :height: 4.43750in
94 :width: 7.88889in