...
Code Block | ||
---|---|---|
| ||
# Checkout the tosca lab repo: root@node:~/tosca_lab# git clone https://gerrit.onap.org/r/sdc/dcae-d/tosca-lab Cloning into 'tosca-lab'... remote: Counting objects: 2, done remote: Finding sources: 100% (2/2) remote: Total 292 (delta 0), reused 292 (delta 0) Receiving objects: 100% (292/292), 162.28 KiB | 0 bytes/s, done. Resolving deltas: 100% (104/104), done. Checking connectivity... done. root@node:~/tosca_lab# ls tosca-lab # Change directory to app: root@node:~/tosca_lab# cd tosca-lab/ root@node:~/tosca_lab/tosca-lab# ls INFO.yaml LICENSE.TXT app docker mvn-phase-script.sh nginx pom.xml scripts simple_compose_stdin.py tox.ini version.properties root@node:~/tosca_lab/tosca-lab# cd app/ root@node:~/tosca_lab/tosca-lab/app# ls README.md __init__.py data map_sup_enrich_compose.py model_create.py policy_create.py requirements.txt simple_compose.py tests tosca_server.py toscalib version.py web # Create tosca model artifacts from component spec: root@node:~/tosca_lab/tosca-lab/app# python model_create.py -h OPTIONS: -h|--help: print this help message -i|--input: The PATH to spec file -o|--output: the folder for the output model -n|--name: the name of the service -t|--import: the PATH to import file -m|--meta: the PATH to meta model file (default: ./data/meta_model/meta_tosca_schema.yaml root@node:~/tosca_lab/tosca-lab/app# python model_create.py -i /home/ubuntu/tosca-lab/app/pmmapper-component-spec.json -o /home/ubuntu/tosca-model/ WARNING:root:Interface namecloudify.interfaces.lifecyclehas been definend in parenty type, overwritten here # Verify created tosca model artifacts : root@node:~/tosca-model# cd /home/ubuntu/tosca-model/ root@node:~/tosca-model# ls pmmapper-component-spec.json schema.yaml template.yaml translate.yaml |
...