cwl docker

 

复制代码
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: CommandLineTool

label: echo
doc: |
  NCBI BlastN Nucleotide-Nucleotide BLAST

requirements:
  InlineJavascriptRequirement: {}
  ResourceRequirement:
    coresMax: 3
    ramMax: 10240


hints:
  DockerRequirement:
    dockerPull: busybox:1.36
  SoftwareRequirement:
    packages:
      blast:
        specs: [ https://bio.tools/blast ]
        version: [ "2.15.0" ]
arguments:
  - valueFrom: $(runtime.cores)
    position: 2

inputs:
  message:
    type: string
    # A default value that can be overridden, e.g. --message "Hola mundo"
    default: "Hello World"
    # Bind this message value as an argument to "echo".
    inputBinding:
      position: 1

outputs: []
baseCommand: ["echo"]
复制代码
复制代码
[root@bios cellxgene]# cwltool  --strict-cpu-limit  --strict-memory-limit  cc.cwl
INFO /usr/local/bin/cwltool 3.1.20230719185429
INFO Resolved 'cc.cwl' to 'file:///opt/zcy/cellxgene/cc.cwl'
INFO [job cc.cwl] /tmp/wpft111o$ docker \
    run \
    -i \
    --mount=type=bind,source=/tmp/wpft111o,target=/cBJKeD \
    --mount=type=bind,source=/tmp/j8qmvbwa,target=/tmp \
    --workdir=/cBJKeD \
    --read-only=true \
    --user=0:0 \
    --rm \
    --cidfile=/tmp/xvi2z5wk/20240903113406-036800.cid \
    --env=TMPDIR=/tmp \
    --env=HOME=/cBJKeD \
    --memory=10240m \
    --cpus=3 \
    busybox:1.36 \
    echo \
    'Hello World' \
    3
Hello World 3
INFO [job cc.cwl] Max memory used: 0MiB
INFO [job cc.cwl] completed success
{}INFO Final process status is success
复制代码

 

posted on   我和你并没有不同  阅读(7)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2021-09-03 你还在 Docker 中跑 MySQL? 转载:https://mp.weixin.qq.com/s/4kFO6gCRdrxBN_bKpSzDoA
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示