blob: bc7a548912ed5112dab979e143727f2df5dc6d96 [file] [log] [blame]
Lusheng Ji72c4fba2017-10-10 18:12:22 +00001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3
Lusheng Jieaac78d2018-06-06 00:20:03 -04004Building DCAE
5=============
Lusheng Ji72c4fba2017-10-10 18:12:22 +00006
Lusheng Ji72c4fba2017-10-10 18:12:22 +00007
Lusheng Jia73548f2017-11-05 19:24:05 -05008Description
9-----------
10DCAE has multiple code repos and these repos are in several different languages. All DCAE projects are built in similar fashion, following Maven framework as Maven projects. Although many DCAE projects are not written in Java, adopting the Maven framework does help including DCAE projects in the overall ONAP building methodology and CICD process.
11
Lusheng Jieaac78d2018-06-06 00:20:03 -040012All DCAE projects use ONAP **oparent** project POM as ancestor. That is, DCAE projects inherent all parameters defined in the oparent project which include many ONAP wide configuration parameters such as the location of various artifact repos.
Lusheng Jia73548f2017-11-05 19:24:05 -050013
14A number of DCAE projects are not written Java. For these projects we use the CodeHaus Maven Execution plugin for triggering a Bash script at various stages of Maven lifecycle. The script is mvn-phase-script.sh, located at the root of each non-Java DACE project. It is in this script that the actual build operation is performed at different Maven phases. For example, for a Python project, Maven test will actually trigger a call to tox to conduct project unit tests.
15
16Below is a list of the repos and their sub-modules, and the language they are written in.
17
18* dcaegen2
19
20 - docs (rst)
21 - platformdoc (mkdoc)
22
23* dcaegen2.analytics
24
25* dcaegen2.analytics.tca
26
27 - dcae-analytics-aai (Java)
28 - dcae-analytics-cdap-common (Java)
29 - dcae-analytics-cdap-plugins (Java)
30 - dcae-analytics-cdap-tca (Java)
31 - dcae-analytics-common (Java)
32 - dcae-analytics-dmaap (Java)
33 - dcae-analytics-it (Java)
34 - dcae-analytics-model (Java)
35 - dcae-analytics-tca (Java)
36 - dcae-analytics-test (Java)
37 - dpo (Java)
38
Vijay VK2648c6d2018-09-19 04:30:37 +010039* dcaegen2.analytics.tca-gen2
40 - dcae-analytics (Java)
41 - eelf-logger (Java)
42
Lusheng Jia73548f2017-11-05 19:24:05 -050043* dcaegen2.collectors
44
Lusheng Jieaac78d2018-06-06 00:20:03 -040045 - dcaegen2.collectors.snmptrap (Python)
46 - dcaegen2.collectors.ves (Java)
Vijay VK2648c6d2018-09-19 04:30:37 +010047 - dcaegen2.collectors.hv-ves (Kotlin)
48 - dcaegen2.collectors.datafile (Java)
Vijay VK6b0fa462019-05-20 16:06:11 +010049 - dcaegen2.collectors.restconf (Java)
Vijay VK2648c6d2018-09-19 04:30:37 +010050
51* dcaegen2.services
52
53 - dcaegen2.services.heartbeat (Python)
54 - dcaegen2.services.prh (Java)
Vijay VK6b0fa462019-05-20 16:06:11 +010055 - dcaegen2.services.bbs-eventprocessor (Java)
56 - dcaegen2.services.pm-mapper (Java)
57 - dcaegen2.services.ves-mapper (Java)
58 - dcaegen2.services.son-handler (Java)
Lusheng Jia73548f2017-11-05 19:24:05 -050059
60* dcaegen2.deployments
61
Lusheng Jia73548f2017-11-05 19:24:05 -050062 - scripts (bash, python)
Vijay VK2648c6d2018-09-19 04:30:37 +010063 - tls-init-container (bash)
64 - k8s-bootstrap-container (bash)
65 - healthcheck-container (Node.js)
66 - k8s-bootstrap-container (bash)
Vijay VK6b0fa462019-05-20 16:06:11 +010067 - tca-cdap-container (bash)
68 - multisite-init-container (python)
69 - dcae-remote-site (helm chart)
Lusheng Jia73548f2017-11-05 19:24:05 -050070
71* dcaegen2.platform
72
73* dcaegen2.platform.blueprints
74
75 - blueprints (yaml)
Lusheng Jia73548f2017-11-05 19:24:05 -050076 - input-templates (yaml)
77
Lusheng Jieaac78d2018-06-06 00:20:03 -040078* dcaegen2.platform.cli (Python)
Lusheng Jia73548f2017-11-05 19:24:05 -050079
80 - component-json-schemas (yaml)
81 - dcae-cli (Python)
82
83* dcaegen2.platform.configbinding (Python)
84
VENKATESH KUMARbe32a312019-06-07 01:31:10 -040085* dcaegen2.platform.deployment-handler (NodeJS)
Lusheng Jia73548f2017-11-05 19:24:05 -050086
VENKATESH KUMARbe32a312019-06-07 01:31:10 -040087* dcaegen2.platform.inventory-api (Java)
Lusheng Jia73548f2017-11-05 19:24:05 -050088
89* dcaegen2.platform.plugins
90
91 - cdap (Python)
92 - dcae-policy (Python)
93 - docker (Python)
94 - relationships (Python)
Vijay VK6b0fa462019-05-20 16:06:11 +010095 - k8splugin (Python)
Lusheng Jia73548f2017-11-05 19:24:05 -050096
97* dcaegen2.platform.policy-handler (Python)
98
VENKATESH KUMARbe32a312019-06-07 01:31:10 -040099* dcaegen2.platform.servicechange-handler (Clojure)
Lusheng Jia73548f2017-11-05 19:24:05 -0500100
101* dcaegen2.utils
102
103 - onap-dcae-cbs-docker-client (Python)
104 - onap-dcae-dcaepolicy-lib (Python)
105 - python-discovery-client (Python)
106 - python-dockering (Python)
107 - scripts (bash)
108
Lusheng Ji72c4fba2017-10-10 18:12:22 +0000109
Lusheng Ji72c4fba2017-10-10 18:12:22 +0000110Environment
111-----------
Lusheng Jia73548f2017-11-05 19:24:05 -0500112Building is conducted in a Linux environment that has the basic building tools such as JDK 8, Maven 3, Python 2.7 and 3.6, docker engine, etc.
Lusheng Ji72c4fba2017-10-10 18:12:22 +0000113
114
115Steps
116-----
Lusheng Jia73548f2017-11-05 19:24:05 -0500117Because of the uniform adoption of Maven framework, each project can be built by running the standard Maven build commands: mvn clean, install, deploy, etc. For projects with submodules, the pom file in the project root will descent to the submodules and complete the submodule building.
118
119
120Artifacts
121---------
122Building of DCAE projects produce three different kinds of artifacts: Java jar files, raw file artifacts (including yaml files, scripts, wagon packages, etc), Pypi packages, and docker container images.
123
124
125