Skip to content

Commit 3e20f83

Browse files
committed
Updating dataloader to pass input to output
1 parent 65aa004 commit 3e20f83

File tree

3 files changed

+11
-34
lines changed

3 files changed

+11
-34
lines changed

app/app.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@ wget $LINK/download
55
mv download download.zip
66
unzip download.zip -d /odtp/odtp-output
77

8+
if [ "$TRANSFER_INPUT_TO_OUTPUT" == "TRUE" ]; then
9+
cp -r /odtp/odtp-input/* /odtp/odtp-output
10+
fi
11+
812
# All the output folder and files are placed in odtp-output
913
cp -r /odtp/odtp-workdir/output/* /odtp/odtp-output

app/config_templates/template.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

odtp.yml

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,12 @@
11
# This file should contain basic component information for your component.
2-
- name: Name of the component
3-
- component_version: Version
4-
- repository: Repository
5-
- commit:
6-
- author: Author of the component
7-
- original_author: Author of the tool
8-
- description: Description
2+
- name: Eqasim dataloader
3+
- component_version: 0.2.0
4+
- repository:
5+
- author: Caviri
6+
- original_author: Caviri
7+
- description: Tool to download and uncompress a data folder
98
- type: ephemeral
109
- tags: ["dataloader"]
1110
- arguments:
1211
- LINK: string
13-
- inputs: None
14-
- devices:
15-
- gpus: False
16-
- inputSchema: ...
17-
- outputSchema: ...
18-
- env:
19-
- PARAMETER_ENV_VARIABLE: ...
20-
- odtp.ports:
21-
- api: 7100
22-
- logger: 7101
23-
- odtp.env:
24-
- ODTP_MONGO_SERVER
25-
- ODTP_S3_SERVER
26-
- ODTP_BUCKET_NAME
27-
- ODTP_ACCESS_KEY
28-
- ODTP_SECRET_KEY
29-
- ODTP_USER_ID
30-
- ODTP_DIGITAL_TWIN
31-
- ODTP_EXCUTION
32-
- ODTP_STEP
33-
- ODTP_COMPONENT
34-
- ODTP_COMPONENT_VERSION
35-
- ODTP_SAVE_SNAPSHOT
36-
12+
- TRANSFER_INPUT_TO_OUTPUT: bool

0 commit comments

Comments
 (0)