Digital Twin File Structure in Gitlab
We use GitLab as a file store for performing DevOps on Digital Twins. The user interface page is a front-end for this gitlab-backed file storage.
Each DTaaS installation comes with an integrated Gitlab. There must be a gitlab group named dtaas and a gitlab repository for each user where repository name matches the username. For example, if there are two users, namely user1 and user2 on a DTaaS installation, then the following repositories must exist on the linked Gitlab installation.
Each user repository must also have a specific structure. The required structure is as follows.
This file structure follows the same pattern user sees on the existing Library page.
Digital Twin Structure
The digital_twins
folder contains DTs that have been pre-built by one or
more users. The intention is that they should be sufficiently flexible to be
reconfigured as required for specific use cases.
Let us look at an example of such a configuration. The
dtaas/user1 repository on gitlab.com contains
the digital_twins
directory with a hello_world
example. Its file structure
looks like this:
The lifecycle
directory here contains four files - clean
, create
,
execute
and terminate
, which are simple
BASH scripts.
These correspond to stages in a digital twin's lifecycle.
Further explanation of digital twin is available on
lifecycle stages.