diff options
author | VENKATESH KUMAR <vv770d@att.com> | 2020-04-06 18:55:10 -0400 |
---|---|---|
committer | VENKATESH KUMAR <vv770d@att.com> | 2020-04-10 16:02:56 -0400 |
commit | e64d2d643d8cf400263c9b01063fced6fc5edcb2 (patch) | |
tree | 1aa50a1973f021759f2cdd742e83a02b9220fa8d /docs/sections/components | |
parent | c790dcb3bbd3c498e0f838837c212ce185e70da5 (diff) |
dcae r6 doc updates
Change-Id: I348d9bcf9eb69286fc4a12d8866d102186d26722
Signed-off-by: VENKATESH KUMAR <vv770d@att.com>
Issue-ID: DCAEGEN2-1892
Signed-off-by: VENKATESH KUMAR <vv770d@att.com>
Diffstat (limited to 'docs/sections/components')
-rw-r--r-- | docs/sections/components/blueprint_generator.rst | 77 | ||||
-rw-r--r-- | docs/sections/components/component-development.rst | 1 |
2 files changed, 78 insertions, 0 deletions
diff --git a/docs/sections/components/blueprint_generator.rst b/docs/sections/components/blueprint_generator.rst new file mode 100644 index 00000000..8813cefd --- /dev/null +++ b/docs/sections/components/blueprint_generator.rst @@ -0,0 +1,77 @@ + +Blueprint Generator (DCAE) +============================================= + +What is the Blueprint Generator? +++++++++++++++++++++++++++++++++ +The blueprint generator is a java rewrite of the tosca lab python tool. The point of this tool is to be able to take a component spec for a given micro-service and translate that component spec into a blueprint yaml file that can be used during deployment. + + +Steps to run the blueprint generator: ++++++++++++++++++++++++++++++++++++++ + +1. Download the jar file from Nexus by clicking `here <https://nexus.onap.org/service/local/repositories/releases/content/org/onap/dcaegen2/platform/mod/blueprint-generator/1.3.1/blueprint-generator-1.3.1-executable.jar>`_ or running + ``https://nexus.onap.org/service/local/repositories/releases/content/org/onap/dcaegen2/platform/mod/blueprint-generator/1.3.1/blueprint-generator-1.3.1-executable.jar`` + +2. To execute the application, run the following command: + ``java -jar blueprint-generator-1.3.1-executable.jar blueprint`` + +3. This execution will provide the help, as you have not provided the required flags. + +4. When ready you can run the program again except with the required flags. + +5. OPTIONS: + -p: The path to where the final blueprint yaml file will be created (required) + + -i: The path to the JSON spec file (required) + + -n: Name of the blueprint (optional) + + -t: the path to the import yaml file (optional) + + -d: If this flag is present the bp generator will be created with dmaap plugin (optional) + + -o: This flag will create a service component override for your deployment equal to the value you put (optional) + +6. An example running this program would look like this: + ``java -jar blueprint-generator-1.2.1-executable.jar -p blueprint_output -i ComponentSpecs/TestComponentSpec.json -n TestAppBlueprint`` + + +Extra information +----------------- + +1. The component spec must be of the same format as stated in the onap `readthedocs <https://onap.readthedocs.io/en/latest/submodules/dcaegen2.git/docs/sections/components/component-specification/common-specification.html#working-with-component-specs>`_ page + +2. If the tag says required then the program will not run without those tags being there + +3. If the tag says optional then it is not necessary to run the program with those tags + +4. If you do not add a -n tag the blueprint name will default to what it is in the component spec + +5. If the directory you specified in the -p tag does not already exist the directory will be created for you + +6. The -t flag will override the default imports set for the blueprints. To see an example of how the import yaml file should be structured see the testImports.yaml file under the folder TestCases + + +How to create policy models: ++++++++++++++++++++++++++++++++++++++ + +1. Policy model creation can be done with the same jar as downloaded for the blueprint generation. + +2. Run the same command as the blueprint generator except replace the ``blueprint`` positional with ``policy`` + +3. Example command: + ``java -jar blueprint-generator-1.3.1-executable.jar policy`` + +4. Options: + + -i: The path to the JSON spec file (required) + + -p: The Output path for all of the models (required) + +Extra information +----------------- + +1. Not all component specs will be able to create policy models + +2. Multiple policy model files may be create from a single component spec
\ No newline at end of file diff --git a/docs/sections/components/component-development.rst b/docs/sections/components/component-development.rst index 24463902..d4b34a74 100644 --- a/docs/sections/components/component-development.rst +++ b/docs/sections/components/component-development.rst @@ -10,6 +10,7 @@ Onboarding Pre-requisite (Service Component) ./intro.rst ./architecture/pieces.rst ./architecture/service-discovery.rst + ./architecture/blueprint_generator.rst ./requirements-guidelines.rst ./component-specification/component-specification.rst ./component-json-schema.rst |