Correction in Image references and CBA structure
[ccsdk/cds.git] / docs / CBA / index.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0
2 .. International License. http://creativecommons.org/licenses/by/4.0
3 .. Copyright (C) 2019 IBM.
4
5 .. _cds_cba-doc:
6
7 Controller Blueprint Archived Designer Tool(CBA)
8 ================================================
9 .. toctree::
10    :maxdepth: 1
11
12 Introduction
13 ------------
14 The Controller Blueprint Archived is the overall service design, fully
15 model-driven, package needed to automate the resolution of resources for
16 instantiation and any config provisioning operation, such as day0,
17 day1 or day2 configuration.
18
19 The CBA is .zip file, comprised of the following folder structure, the
20 files may vary:
21
22 |image0|
23
24
25 Architecture
26 ------------
27
28 |image3|
29
30
31 Installation
32 ------------
33
34 Building 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
45 Building 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
59 Development
60 -----------
61
62 Pre-requiste
63 ............
64    * Visual Studio code editor
65    * Git bash
66    * Node.js & npm
67    * loopback 4 cl
68
69 Steps
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
80 Functional 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
92 .. |image3| image:: media/CDS_architecture.jpg
93    :height: 4.43750in
94    :width: 7.88889in