-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdt-example.sh
39 lines (31 loc) · 1021 Bytes
/
dt-example.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
DT_PATH=$(pwd)
DIGITAL_TWIN_NAME=dt-example-1
EXECUTION_NAME=dt-example-execution-3
# Removing gitkeep
rm ${DT_PATH}/dt-example/execution/.gitkeep
# Pulling all the components and versions
odtp new odtp-component-entry \
--component-version v0.1.8 \
--repository https://github.com/odtp-org/odtp-component-example
odtp new odtp-component-entry \
--component-version v0.1.6 \
--repository https://github.com/odtp-org/odtp-pygwalker
# Creating new digital twin
odtp new digital-twin-entry \
--user-email ${ODTP_USER_EMAIL} \
--name ${DIGITAL_TWIN_NAME}
# Creating new execution
odtp new execution-entry \
--name ${EXECUTION_NAME} \
--digital-twin-name ${DIGITAL_TWIN_NAME} \
--component-tags odtp-component-example:v0.1.8,odtp-pygwalker:v0.1.6 \
--ports ,8502:8501
# Preparing execution
odtp execution prepare \
--execution-name ${EXECUTION_NAME} \
--project-path ${DT_PATH}/dt-example/execution
# Running execution
odtp execution run \
--execution-name ${EXECUTION_NAME}