Skip to content

Commit

Permalink
fixes stage-out
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricebrito committed Oct 20, 2023
1 parent d1dbb4e commit 7fdcae1
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions stage/stage-out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@ cwlVersion: v1.0

class: CommandLineTool
id: stage-out

doc: "Stage-out the results to S3"

baseCommand:
- python
- stage.py

hints:
DockerRequirement:
dockerPull: stac-asset:latest
"cwltool:Secrets":
secrets:
- aws_access_key_id
Expand All @@ -38,6 +31,10 @@ outputs:
outputEval: ${ return "s3://" + inputs.s3_bucket + "/" + inputs.sub_path + "/catalog.json"; }
type: string

baseCommand:
- python
- stage.py

arguments:
- $( inputs.wf_outputs.path )
- $( inputs.s3_bucket )
Expand All @@ -48,6 +45,13 @@ arguments:
- $( inputs.endpoint_url )

requirements:
DockerRequirement:
dockerPull: stac-asset:latest
InlineJavascriptRequirement: {}
EnvVarRequirement:
envDef:
A: "2"
ResourceRequirement: {}
InitialWorkDirRequirement:
listing:
- entryname: stage.py
Expand Down Expand Up @@ -132,8 +136,3 @@ requirements:
print(f"s3://{bucket}/{subfolder}/catalog.json", file=sys.stdout)
InlineJavascriptRequirement: {}
EnvVarRequirement:
envDef:
A: "2"
ResourceRequirement: {}

0 comments on commit 7fdcae1

Please sign in to comment.