cwlVersion: v1.0 $namespaces: s: https://schema.org/ s:softwareVersion: 0.1.2 schemas: - http://schema.org/version/9.0/schemaorg-current-http.rdf $graph: # Workflow entrypoint - class: Workflow id: convert-url label: convert url app doc: Convert URL requirements: ResourceRequirement: coresMax: 1 ramMax: 1024 inputs: fn: label: the operation to perform doc: the operation to perform type: string default: "resize" url: label: the image to convert doc: the image to convert type: string default: "https://eoepca.org/media_portal/images/logo6_med.original.png" size: label: the percentage for a resize operation doc: the percentage for a resize operation type: string default: "50%" outputs: - id: converted_image type: Directory outputSource: - convert/results steps: convert: run: "#convert" in: fn: fn url: url size: size out: - results # convert.sh - takes input args `--url` - class: CommandLineTool id: convert requirements: ResourceRequirement: coresMax: 1 ramMax: 512 hints: DockerRequirement: dockerPull: public.ecr.aws/eodh/ades-workflow-examples:0.0.1 baseCommand: convert.sh inputs: fn: type: string inputBinding: position: 1 url: type: string inputBinding: position: 2 prefix: --url size: type: string inputBinding: position: 3 outputs: results: type: Directory outputBinding: glob: .