apiVersion: batch/v1
kind: Job
metadata:
  name: stage-cwl-files
spec:
  template:
    spec:
      containers:
      - name: stage-cwl-files
        image: curlimages/curl
        command: ["/bin/sh"]
        args:
          - -c
          - >-
            cd /calrissian/input-data &&
            curl -O https://raw.githubusercontent.com/pymonger/soamc-cwl-demo/1.1.0/baseline-pge/baseline-pge-workflow.cwl &&
            curl -O https://raw.githubusercontent.com/pymonger/soamc-cwl-demo/1.1.0/baseline-pge/stage-in.cwl &&
            curl -O https://raw.githubusercontent.com/pymonger/soamc-cwl-demo/1.1.0/baseline-pge/run-pge.cwl &&
            curl -O https://raw.githubusercontent.com/pymonger/soamc-cwl-demo/1.1.0/baseline-pge/stage-out.cwl
        volumeMounts:
        - mountPath: /calrissian/input-data
          name: calrissian-input-data
      restartPolicy: OnFailure
      volumes:
      - name: calrissian-input-data
        persistentVolumeClaim:
          claimName: calrissian-input-data
