Skip to content

About

TOSCA Designer was tested with the Face Recognition application example, a basic face recognition application was modelled and deployed, showcasing the tool's ability to handle complex application deployments. The application involves a web application that analyses a webcam video stream and performs face recognition.

Resources

Stars

1 star

Watchers

2 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MYRTUS Face Application: TOSCA Designer Model

A Modelio project that models the MYRTUS Face Application as a TOSCA service template, using the ToscaDesigner Modelio module.

The project describes the application topology (software components, hosts, requirements, capabilities and deployment artifacts) with TOSCA node types defined in the example.eu.myrtus.nodetypes package.

Table of contents

Overview

Item Value
Project name MYRTUS Face Application
Project type Local Modelio project
Modelio version 5.4
Modeling module ToscaDesigner 0.5.02
Libraries PredefinedTypes 3.9.00, ToscaLibrary 0.0.05
Diagram theme Cobalt

Modelled elements

The model fragment MYRTUS Face Application contains the following.

TOSCA node types (package example.eu.myrtus.nodetypes):

  • MyrtusSWComponent: base software component type, built on tosca.nodes.SoftwareComponent.
  • MyrtusCameraFeed: camera feed service (web service interface CameraFeed.WebService).
  • MyrtusFaceDetectionService: face detection service.
  • MyrtusProxy: proxy service (web service interface MyrtusProxy.WebService).
  • Myrtus-Workstation: workstation host, built on tosca.nodes.Compute.
  • FaceApplication: the top-level application type.

Service template (MYRTUS_FaceApplication):

  • Node templates instantiating the types above (for example Myrtus_Proxy_0, Myrtus_Workstation_1, MyrtusCameraFeed_0, MyrtusFaceDetectionService_0).
  • Requirements, capabilities, host, connects and egress relationships between nodes.
  • Deployment artifacts such as nginx.conf, fullchain.pem and key.

Diagrams:

  • ToscaModelDiagram
  • ServiceTemplateDiagram
  • Topology Template Diagram

Requirements

  • Modelio 5.4 (the project was created with this version).
  • The ToscaDesigner module, version 0.5.02.
  • The ModelerModule (activated in the project).

Getting started

  1. Clone the repository:

    git clone https://github.com/Modelio-R-D/MyrtusFaceAppToscaDesigner.git
  2. Install the ToscaDesigner module (0.5.02) in Modelio through the module catalog or from a local .jmdac file.

  3. In Modelio, choose File > Open a project and select the cloned folder (the one containing project.conf).

  4. If Modelio reports that a module or library cannot be found at its original path, point it to your local copy of ToscaDesigner 0.5.02 and activate the module.

  5. Open the diagrams from the model explorer.

Repository structure

.
├── LICENSE
├── project.conf                      Modelio project descriptor
├── .runtime/                         Modelio runtime and index files
└── data/
    ├── .config/                      Diagram styles, themes, audit configuration
    ├── localmodel/                   Local model storage
    ├── modelchanges.conf
    └── fragments/
        ├── MYRTUS Face Application/  Project model (.exml files)
        ├── ToscaDesigner/            ToscaDesigner module library content
        └── PredefinedTypes 3.9.00/   Predefined UML types

Notes

  • project.conf is generated by Modelio and should not be edited by hand. It contains absolute Windows paths from the machine where the project was created; Modelio resolves them again when the project is opened on another machine.
  • Files in .runtime/ and the index files in data/ are regenerated by Modelio.
  • The model files (.exml) are Modelio's own XML format and are meant to be edited from within Modelio.

License

This project is distributed under the GNU General Public License v3.0. See the LICENSE file for details.

About

TOSCA Designer was tested with the Face Recognition application example, a basic face recognition application was modelled and deployed, showcasing the tool's ability to handle complex application deployments. The application involves a web application that analyses a webcam video stream and performs face recognition.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages