Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document NetworkAccess #249

Open
mr-c opened this issue Sep 8, 2022 · 2 comments · May be fixed by #381
Open

document NetworkAccess #249

mr-c opened this issue Sep 8, 2022 · 2 comments · May be fixed by #381

Comments

@mr-c
Copy link
Member

mr-c commented Sep 8, 2022

https://www.commonwl.org/v1.2/CommandLineTool.html#NetworkAccess

Show an example where it's absences fails, like in https://matrix.to/#/!RQMxrGNGkeDmWHOaEs:gitter.im/$oCRbg2MbnfAsXX6IECi9okBwwEw8zDXPMKe8b76REbA

@swzCuroverse
Copy link
Contributor

@Fienne here is an example -- https://github.com/arvados/lightning/blob/21d6e8843c29ee1f6c8ffdf867fda49d12378b40/cwl/lightning/lightning-anno2vcf.cwl

It has a bunch of Arvados specific flags but you can see how it is used. If we can think of a simple command line tools that requires the network, that might be easiest. Let me come up with one and then you can write a simple cwl tool for it.

@swzCuroverse
Copy link
Contributor

swzCuroverse commented Feb 22, 2023

@Fienne I wrote a simple example using Curl and downloading the page with links to the CWL standards.

cwlVersion: v1.2
class: CommandLineTool

requirements:
  NetworkAccess:
    networkAccess: true

baseCommand: curl 

stdout: download.html 

inputs:
  url:
    type: string
    inputBinding:
       position: 1

outputs:
  out:
    type: File 
    outputBinding:
      glob: download.html

and the input yml file would be
url: https://www.commonwl.org/v1.2/

@Fienne Fienne linked a pull request Feb 24, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants