blob: 8a31e844a07ecf58166311107e503ed38f1e0855 [file] [log] [blame]
Ralph Knag1fca6ac2017-12-05 12:05:57 -05001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3
4.. _intro:
5
6
7Component Developer Overview
8============================
9
10DCAE components are services that provide a specific functionality and
11are written to be composable with other DCAE service components. The
12DCAE platform is responsible for running and managing DCAE service
13components reliably.
14
15Currently, the DCAE platform supports two types of components, CDAP
16applications and Docker containers. For each, there are requirements
17that must be met for the component to integrate into the DCAE platform
18(see :doc:`CDAP <component-type-cdap>` and :doc:`Docker <component-type-docker>`.
19
20Components requires one or more data formats.
21~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22
23Components are software applications that do some function. Components
24dont run independently, they depend upon other components. A
25components function could require connecting to other components to
26fulfill that function. A component could also be providing its function
27as a service through an interface for other components to use.
28
29Components cannot connect to or be connected with any other component.
30The upstream and downstream components must *speak* the same vocabulary
31or *data format*. The output of an one component must match another
32components input. This is necessary for components to function
33correctly and without errors.
34
35The platform requires data formats to ensure that a component will be
36run with other *compatible* components.
37
38Data formats can and should be shared by multiple components.
39
40Each Component requires a component specification.
41~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42
43The component specification is a JSON artifact that fully specifies the
44component, its interfaces, and configuration. Its standardized for
45CDAP and Docker applications and is validated using a :any:`JSON
46schema <dcae-component-schema>`.
47
48The component specification fully specifies all the configuration
49parameters of the component. This is used by the designer and by policy
50(future) to configure the runtime behavior of the component.
51
52The component specification is used to *generate* application
53configuration in a standardized JSON that the platform will make
54available to the component. This application configuration JSON will
55include:
56
57- Parameters that have been assigned values from the component
58 specification, policy, and/or the designer
59- Connection details of downstream components
60
61The component specification is transformed by DCAE tooling (explained
62later) into TOSCA models (one for the component, and in the future, one
63for Policy). The TOSCA models then get transformed into Cloudify
64blueprints.
65
66The component specification is used by:
67
68- dcae_cli tool - to validate it
69- Design Tools - TOSCA models are generated from the component
70 specification so that the component can be used by designers to
71 compose new DCAE services in SDC.
72- Policy (future) - TOSCA models are generated from the component
73 specification so that operations can create policy models used to
74 dynamically configure the component.
75- the runtime platform - The components application configuration
76 (JSON) is generated from the component specification and will be
77 provided to the component at runtime.
78
79Onboarding
80----------
81
82Onboarding is a process that ensures that the component is compliant
83with the DCAE platform rules. A command-line tool called :doc:`dcae-cli <dcae-cli/quickstart>` is provided to help with onboarding. The high level summary of the onboarding process is:
84
851. Defining the :doc:`data formats <data-formats>` if they dont already
86 exist.
872. Define the :doc:`component specification <component-specification/common-specification>`. See :doc:`Docker <component-specification/docker-specification>` and :doc:`CDAP <component-specification/cdap-specification>`.
883. Use the dcae_cli tool to :any:`add the data formats <adding-data-formats>`
89 and :any:`add the component <adding-component>` to
90 the onboarding catalog. This process will validate them as well.
914. Use the dcae_cli tool to :any:`deploy <development-and-testing>`
92 the component. (The component is deployed to the environment
93 indicated in :any:`profile <setting-profile>`).
945. Test the component. Also do pairwise-test the component with any
95 other components it connects with.
966. Publish the component and data formats into the Service Design and
97 Creation (SDC) catalog’. (Currently, this is a manual step).