Components and Versions
Note
- Components are code repos that can be used for digital twin workflows
- Components can have different versions
Checkout existing components
In the Dashboard you can list all components that are already on ODTP. For all these components you can select them in the tab "COMPONENT OPTIONS". There you can compare their versions between ODPT and github
In the CLI you can get the metadata for a component from the Mongodb:
[
{
"_id": "66349ff5af3487ca1aace32c",
"author": "Test",
"componentName": "odtp-component-example",
"repoLink": "https://github.com/odtp-org/odtp-component-example",
"status": "active",
"title": "Title for ComponentX",
"type": "ephemeral",
"description": "Description for ComponentX",
"tags": [
"tag1",
"tag2"
],
"created_at": "2024-05-03 08:27:33.938000",
"updated_at": "2024-05-03 08:27:33.938000",
"versions": [
"66349ff5af3487ca1aace32d"
]
}
]
Add a new component
Add a component:
- Components are imported by their github url and version tag
- you can specify ports with
--ports
Note
The component will be represented by the component name
and the version tag
. Make sure to name the component in a way that helps to recognize it: best take the github name of the component's repository.
graph LR
odtp-component-example:v0.1.0;
Add a new version for an existing component
Under the tab "COMPONENT OPTIONS" you can also update a component by adding a new version for it from github.