Skip to content

Commit 5ca6b50

Browse files
committed
Generation of import statements in topology templates
1 parent b4d3e00 commit 5ca6b50

File tree

3 files changed

+259
-229
lines changed

3 files changed

+259
-229
lines changed
-753 Bytes
Binary file not shown.

ToscaDesigner/Generated TOSCA files/MyrtusFace_Application.tosca

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,34 @@
11
tosca_definitions_version: tosca_simple_yaml_1_3
22

33

4+
imports:
5+
- file: MyrtusFaceDetectionService_0.tosca
6+
namespace_uri: example.eu.myrtus.nodetypes
7+
namespace_prefix: MYRTUS-
8+
- file: Myrtus_Proxy_0.tosca
9+
namespace_uri: example.eu.myrtus.nodetypes
10+
namespace_prefix: MYRTUS-
11+
- file: MyrtusCameraFeed_0.tosca
12+
namespace_uri: example.eu.myrtus.nodetypes
13+
namespace_prefix: MYRTUS-
14+
- file: Myrtus_Workstation_1.tosca
15+
namespace_uri: example.eu.myrtus.nodetypes
16+
namespace_prefix: MYRTUS-
417

518
topology_template:
619

720
node_templates:
821
Myrtus_Workstation_1:
922
type: example.eu.myrtus.nodetypes.Myrtus-Workstation
10-
23+
metadata:
24+
displayName: "Myrtus-Workstation"
1125

1226

1327

1428
MyrtusFaceDetectionService_0:
1529
type: example.eu.myrtus.nodetypes.MyrtusFaceDetectionService
16-
30+
metadata:
31+
displayName: "FaceDetection"
1732
properties:
1833
dockerImage: "thebigpotatoe/face-recognition-docker"
1934
requirements:
@@ -25,7 +40,8 @@ topology_template:
2540

2641
Myrtus_Proxy_0:
2742
type: example.eu.myrtus.nodetypes.MyrtusProxy
28-
43+
metadata:
44+
displayName: "Proxy"
2945
properties:
3046
dockerImage: "nginx:alpine"
3147
port: "443"
@@ -45,17 +61,30 @@ topology_template:
4561
relationship: con_HostedOn_2
4662
capability: host
4763

48-
64+
artifacts:
65+
fullchain.pem:
66+
type:
67+
deploy_path:
68+
file:
69+
key:
70+
type:
71+
deploy_path:
72+
file:
73+
nginx.conf:
74+
type:
75+
deploy_path:
76+
file:
4977
MyrtusCameraFeed_0:
5078
type: example.eu.myrtus.nodetypes.MyrtusCameraFeed
51-
79+
metadata:
80+
displayName: "CameraFeed"
5281
properties:
5382
dockerImage: "ci.hesi.energy:5000/myrtus/examples/myrtusface/camera_feed:web"
5483
requirements:
5584
- host:
5685
node: Myrtus_Workstation_1
5786
relationship: con_HostedOn_1
58-
capability: host
87+
capability:
5988

6089

6190

@@ -67,6 +96,6 @@ topology_template:
6796
con_HostedOn_0:
6897
type: hostedOn
6998
con_ConnectsTo_1:
70-
type: connectTo
99+
type: connectsTo
71100
con_ConnectsTo_0:
72-
type: connectTo
101+
type: connectsTo

0 commit comments

Comments
 (0)