Skip to content

Commit f35f94e

Browse files
committed
chore: add example for s3
1 parent fecdc58 commit f35f94e

File tree

7 files changed

+99
-4
lines changed

7 files changed

+99
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/*.local

download/module.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ description: |
2222
minimumResources:
2323
tasks: 1
2424
cpusPerTask: 1
25-
memPerCpu: 100
25+
memPerCpu: 10
2626
gpusPerTask: 0
2727
inputs:
2828
- key: URLS

git-clone/module.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ description: 'Git clone a git repository to the DEEPSQUARE_INPUT/<repo> director
1919
minimumResources:
2020
tasks: 1
2121
cpusPerTask: 1
22-
memPerCpu: 100
22+
memPerCpu: 10
2323
gpusPerTask: 0
2424
inputs:
2525
- key: REPOSITORY

http-upload/module.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ description: |
2020
minimumResources:
2121
tasks: 1
2222
cpusPerTask: 1
23-
memPerCpu: 100
23+
memPerCpu: 10
2424
gpusPerTask: 0
2525
inputs:
2626
- key: FILE

s3-sync/example-pull.json

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"resources": {
3+
"tasks": 1,
4+
"gpusPerTask": 0,
5+
"cpusPerTask": 1,
6+
"memPerCpu": 512
7+
},
8+
"enableLogging": true,
9+
"steps": [
10+
{
11+
"name": "pull",
12+
"use": {
13+
"source": "github.com/deepsquare-io/workflow-modules/s3-sync",
14+
"args": [
15+
{
16+
"key": "SRC",
17+
"value": "s3://osimages/squareos-8.6/vmlinuz-4.18.0-372.19.1.el8_6.x86_64"
18+
},
19+
{
20+
"key": "DEST",
21+
"value": "${DEEPSQUARE_INPUT}"
22+
},
23+
{
24+
"key": "S3_ENDPOINT_URL",
25+
"value": "https://sos-ch-dk-2.exo.io"
26+
},
27+
{
28+
"key": "AWS_SECRET_ACCESS_KEY",
29+
"value": "***"
30+
},
31+
{
32+
"key": "AWS_ACCESS_KEY_ID",
33+
"value": "EXO***"
34+
},
35+
{
36+
"key": "OPTIONS",
37+
"value": "--delete"
38+
}
39+
]
40+
}
41+
},
42+
{
43+
"name": "list",
44+
"run": {
45+
"command": "find $DEEPSQUARE_INPUT"
46+
}
47+
}
48+
]
49+
}

s3-sync/example-push.json

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"resources": {
3+
"tasks": 1,
4+
"gpusPerTask": 0,
5+
"cpusPerTask": 1,
6+
"memPerCpu": 512
7+
},
8+
"enableLogging": true,
9+
"steps": [
10+
{
11+
"name": "create file",
12+
"run": {
13+
"command": "mkdir -p $STORAGE_PATH/stash && echo test > $STORAGE_PATH/stash/test"
14+
}
15+
},
16+
{
17+
"name": "push",
18+
"use": {
19+
"source": "github.com/deepsquare-io/workflow-modules/s3-sync",
20+
"args": [
21+
{
22+
"key": "SRC",
23+
"value": "${STORAGE_PATH}/stash"
24+
},
25+
{
26+
"key": "DEST",
27+
"value": "s3://test"
28+
},
29+
{
30+
"key": "AWS_SECRET_ACCESS_KEY",
31+
"value": "***"
32+
},
33+
{
34+
"key": "AWS_ACCESS_KEY_ID",
35+
"value": "EXO***"
36+
},
37+
{
38+
"key": "S3_ENDPOINT_URL",
39+
"value": "https://sos-ch-dk-2.exo.io"
40+
}
41+
]
42+
}
43+
}
44+
]
45+
}

s3-sync/module.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ description: |
2020
minimumResources:
2121
tasks: 1
2222
cpusPerTask: 1
23-
memPerCpu: 100
23+
memPerCpu: 10
2424
gpusPerTask: 0
2525
inputs:
2626
- key: SRC

0 commit comments

Comments
 (0)