Skip to content

Commit

Permalink
Using --tmp-outdir-prefix to create the files locally
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCinquini committed Mar 7, 2024
1 parent 45d5545 commit 7e10f63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion airflow/dags/docker_cwl_pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
containers:
- name: cwl-docker
# image: ghcr.io/unity-sds/unity-sps/sps-docker-cwl:2.0.0-alpha.1
image: ghcr.io/unity-sds/unity-sps/sps-docker-cwl:develop4
image: ghcr.io/unity-sds/unity-sps/sps-docker-cwl:develop6
imagePullPolicy: Always
command: ["/usr/share/cwl/docker_cwl_entrypoint.sh"]
securityContext:
Expand Down
6 changes: 4 additions & 2 deletions airflow/docker/cwl/docker_cwl_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# $3: optional working directory, defaults to the current directory
# Note: The working must be accessible by the Docker container that executes this script

set -e
set -ex
cwl_workflow=$1
job_args=$2
work_dir=${3:-.}
Expand Down Expand Up @@ -43,7 +43,9 @@ done

# Execute CWL workflow
. /usr/share/cwl/venv/bin/activate
cwl-runner "$cwl_workflow" "$job_args"
pwd
mkdir -p ./cache
cwl-runner --cachedir ./cache --tmp-outdir-prefix "$PWD"/ "$cwl_workflow" "$job_args"
deactivate

# Stop Docker engine
Expand Down

0 comments on commit 7e10f63

Please sign in to comment.