Skip to content

Commit

Permalink
Changing the permissions of the temp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCinquini committed Feb 28, 2024
1 parent 0805f45 commit 46fe12b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion airflow/docker/cwl/docker_cwl_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ echo "$job_args" > /tmp/job_args.json
cat /tmp/job_args.json

# create output directory if it doesn't exist
output_dir=/tmp/abc/
mkdir -p "$output_dir"
chmod 777 "$output_dir"

# Start Docker engine
dockerd &> dockerd-logfile &
Expand All @@ -33,7 +35,7 @@ done
# Execute CWL workflow
. /usr/share/cwl/venv/bin/activate
# cwl-runner --outdir "$output_dir" --no-match-user --no-read-only "$cwl_workflow" /tmp/job_args.json
cwl-runner --no-match-user --no-read-only --tmpdir-prefix . "$cwl_workflow" /tmp/job_args.json
cwl-runner --no-match-user --no-read-only --tmpdir-prefix "$output_dir" "$cwl_workflow" /tmp/job_args.json
deactivate

# Stop Docker engine
Expand Down

0 comments on commit 46fe12b

Please sign in to comment.