blob: c7b219f5c0b01c7c4bffc114e5d417746720ce33 [file] [log] [blame]
Ezhilarasi59620872019-03-08 16:17:22 +05301.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3.. Copyright (C) 2019 IBM.
4
Ezhilarasi91e83422019-03-15 14:30:05 +05305Controller Blueprint Archived Tool(CBA)
Ezhilarasi0f153092019-03-14 12:54:09 +05306----------------------------------------
Ezhilarasi59620872019-03-08 16:17:22 +05307.. toctree::
8 :maxdepth: 1
9
10Introduction:
11=============
Ezhilarasi0f153092019-03-14 12:54:09 +053012The Controller Blueprint Archived is the overall service design, fully model-driven, package needed to automate the resolution of resources for instantiation and any config provisioning operation, such as day0, day1 or day2 configuration.
Ezhilarasi59620872019-03-08 16:17:22 +053013
Ezhilarasi0f153092019-03-14 12:54:09 +053014The CBA is .zip file, comprised of the following folder structure, the files may vary:
15
16|image0|
17
Ezhilarasi2da6f4a2019-03-21 20:07:15 +053018.. |image0| image:: media/image0.jpg
Ezhilarasi0f153092019-03-14 12:54:09 +053019 :width: 7.88889in
20 :height: 4.43750in
21
Ezhilarasi91e83422019-03-15 14:30:05 +053022Architecture:
23=============
Ezhilarasi0f153092019-03-14 12:54:09 +053024
Ezhilarasi91e83422019-03-15 14:30:05 +053025|image3|
26
27.. |image3| image:: media/CDS_architecture.jpg
28 :height: 4.43750in
29 :width: 7.88889in
30
31Installation:
32=============
Ezhilarasi59620872019-03-08 16:17:22 +053033
Ezhilarasi9c710f42019-03-19 16:27:52 +053034Building client html and js files
35=================================
36
37 * FROM alpine:3.8 as builder
38
39 * RUN apk add --no-cache npm
40
41 * WORKDIR /opt/cds-ui/client/
42
43 * COPY client/package.json /opt/cds-ui/client/
44
45 * RUN npm install
46
47 * COPY client /opt/cds-ui/client/
48
49 * RUN npm run build
50
51
52Building and creating server
53============================
54
55 * FROM alpine:3.8
56
57 * WORKDIR /opt/cds-ui/
58
59 * RUN apk add --no-cache npm
60
61 * COPY server/package.json /opt/cds-ui/
62
63 * RUN npm install
64
65 * COPY server /opt/cds-ui/
66
67 * COPY --from=builder /opt/cds-ui/server/public /opt/cds-ui/public
68
69 * RUN npm run build
70
71 * EXPOSE 3000
72
73 * CMD [ "npm", "start" ]
Ezhilarasi91e83422019-03-15 14:30:05 +053074
75Development:
76=============
77
Ezhilarasi9c710f42019-03-19 16:27:52 +053078Pre-requiste:
79=============
80 Visual Studio code editor
81 Git bash
Arundathi Patil8a3bac62019-03-28 15:29:46 +053082 Node.js & npm
83 loopback 4 cli
84
Ezhilarasi9c710f42019-03-19 16:27:52 +053085
86Steps
87=====
88 To compile CDS code:
89
90 1. Make sure your local Maven settings file ($HOME/.m2/settings.xml) contains
91 references to the ONAP repositories and OpenDaylight repositories.
92 2. git clone https://(LFID)@gerrit.onap.org/r/a/ccsdk/cds
93 3. cd cds ; mvn clean install ; cd ..
94 4. Open the cds-ui/client code for development
Ezhilarasi0f153092019-03-14 12:54:09 +053095
Ezhilarasi59620872019-03-08 16:17:22 +053096Data Flow:
97==========
Ezhilarasi0f153092019-03-14 12:54:09 +053098|image1|
Ezhilarasi59620872019-03-08 16:17:22 +053099
Ezhilarasi2da6f4a2019-03-21 20:07:15 +0530100.. |image1| image:: media/image1.jpg
Ezhilarasi59620872019-03-08 16:17:22 +0530101 :width: 7.88889in
102 :height: 4.43750in
103
104Functional Decomposition:
105=========================
Ezhilarasi0f153092019-03-14 12:54:09 +0530106|image2|
Ezhilarasi59620872019-03-08 16:17:22 +0530107
Ezhilarasi2da6f4a2019-03-21 20:07:15 +0530108.. |image2| image:: media/image2.jpg
Ezhilarasi59620872019-03-08 16:17:22 +0530109 :width: 7.88889in
110 :height: 4.43750in
111
112Controller design Studio Presentation:
113======================================
114
Ezhilarasi91e83422019-03-15 14:30:05 +0530115Details about CDS Architecture and Design detail, Please click the link.
Ezhilarasi59620872019-03-08 16:17:22 +0530116:download:`CDS_Architecture_Design.pptx`