clean up some sphinx warnings
[dcaegen2.git] / docs / sections / build.rst
1 Y       .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. _build:
4
5 Building DCAE
6 =============
7
8
9 Description
10 -----------
11 DCAE 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.
12
13 All 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.
14
15 A 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.
16
17 Below is a list of the repositories and their sub-modules, and the language they are written in.
18
19 * dcaegen2
20
21  - docs (rst)
22  - platformdoc (mkdoc)
23
24 * dcaegen2.analytics.tca-gen2
25
26  - dcae-analytics (Java)
27  - eelf-logger (Java)
28
29 * dcaegen2.collectors.snmptrap (Python)
30
31 * dcaegen2.collectors.ves (Java)
32
33 * dcaegen2.collectors.hv-ves (Kotlin)
34
35 * dcaegen2.collectors.datafile (Java)
36
37 * dcaegen2.collectors.restconf (Java)
38
39 * dcaegen2.services
40
41  - dcaegen2.services.kpi-ms (Java)
42  - dcaegen2.services.pmsh (Python)
43  - dcaegen2.services.datalake-handler (Java)
44  - dcaegen2.services.slice-analysis-ms (Java)
45
46 * dcaegen2.services.heartbeat (Python)
47
48 * dcaegen2.services.prh (Java)
49
50 * dcaegen2.services.pm-mapper (Java)
51
52 * dcaegen2.services.ves-mapper (Java)
53
54 * dcaegen2.services.son-handler (Java)
55
56 * dcaegen2.deployments
57
58  - scripts (bash, python)
59  - tls-init-container (bash)
60  - healthcheck-container (Node.js)
61
62
63 * dcaegen2.platform
64
65 * dcaegen2.platform.cli (Python)
66
67  - component-json-schemas (yaml)
68  - dcae-cli (Python)
69
70 * dcaegen2.platform.ves-openapi-manager (Java)
71
72 * dcaegen2.utils
73
74  - scripts (bash)
75
76 * dcaegen2.services.sdk (Java)
77
78 Environment
79 -----------
80 Building is conducted in a Linux environment that has the basic building tools such as JDK 11, Maven 3.6 or higher, Python 3.x, docker engine, etc.
81
82
83 Steps
84 -----
85 Because 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.
86
87
88 Artifacts
89 ---------
90 Building 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.