Skip to content

Commit

Permalink
containers: Workaround Podman permissions with 'z' mounting
Browse files Browse the repository at this point in the history
Running the pipeline with the `-profile podman` option has always failed
due to a '.command.sh: permission denied' error. As referenced in an
nf-core issue at nf-core/nanoseq#74, this is
likely an SELinux problem on Fedora, and should be able to be worked around
by using the 'z' mounting flag. While that didn't work for the OP of that
issue, it works on my machine, so add 'z' mount flags to the working
directories and the Kraken2 database.

Signed-off-by: Thomas A. Christensen II <[email protected]>
  • Loading branch information
MillironX committed Sep 23, 2021
1 parent 9bf6712 commit 645dc94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ profiles {
}
podman {
podman.enabled = true
podman.runOptions = "-v ${params.kraken2_db}:${params.kraken2_db}:ro"
podman.runOptions = "-v ${params.kraken2_db}:${params.kraken2_db}:ro,z"
podman.mountFlags = 'z'
docker.enabled = false
singularity.enabled = false
shifter.enabled = false
Expand Down

0 comments on commit 645dc94

Please sign in to comment.