blob: 641773c6dc5785e29628ec570c06abfed091ba82 [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)
49
50* dcaegen2.services
51
52 - dcaegen2.services.heartbeat (Python)
53 - dcaegen2.services.prh (Java)
54 - dcaegen2.services.mapper (Java)
55
Lusheng Jia73548f2017-11-05 19:24:05 -050056
57* dcaegen2.deployments
58
59 - bootstrap (bash)
60 - cloud_init (bash)
61 - scripts (bash, python)
Vijay VK2648c6d2018-09-19 04:30:37 +010062 - tls-init-container (bash)
63 - k8s-bootstrap-container (bash)
64 - healthcheck-container (Node.js)
65 - k8s-bootstrap-container (bash)
66 - pnda-bootstrap-container (bash)
67 - pnda-mirror-container (bash)
Lusheng Jia73548f2017-11-05 19:24:05 -050068
69* dcaegen2.platform
70
71* dcaegen2.platform.blueprints
72
73 - blueprints (yaml)
74 - check-blueprint-vs-input (yaml)
75 - input-templates (yaml)
76
Lusheng Jieaac78d2018-06-06 00:20:03 -040077* dcaegen2.platform.cli (Python)
Lusheng Jia73548f2017-11-05 19:24:05 -050078
79 - component-json-schemas (yaml)
80 - dcae-cli (Python)
81
82* dcaegen2.platform.configbinding (Python)
83
84* dcaegen2.platform.deployment-handler (Python)
85
86* dcaegen2.platform.inventory-api (Clojure)
87
88* dcaegen2.platform.plugins
89
90 - cdap (Python)
91 - dcae-policy (Python)
92 - docker (Python)
93 - relationships (Python)
94
95* dcaegen2.platform.policy-handler (Python)
96
97* dcaegen2.platform.servicechange-handler (Python)
98
99* dcaegen2.utils
100
101 - onap-dcae-cbs-docker-client (Python)
102 - onap-dcae-dcaepolicy-lib (Python)
103 - python-discovery-client (Python)
104 - python-dockering (Python)
105 - scripts (bash)
106
Lusheng Ji72c4fba2017-10-10 18:12:22 +0000107
108
109Environment
110-----------
Lusheng Jia73548f2017-11-05 19:24:05 -0500111Building 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 +0000112
113
114Steps
115-----
Lusheng Jia73548f2017-11-05 19:24:05 -0500116Because 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.
117
118
119Artifacts
120---------
121Building 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.
122
123
124