Skip to content

Commit

Permalink
Adding changes from nextflow-io#4141
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephLalli committed Jan 16, 2024
1 parent 0ea74a7 commit f6f4c1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ class ContainerConfig extends LinkedHashMap {
final eng = getEngine()
if( !eng )
return null
if( eng=='docker' || eng=='podman' )
return '--rm --privileged'
if( isSingularityOciMode() )
if( eng=='docker' )
return '--rm --device /dev/fuse --security-opt apparmor=unconfined --security-opt seccomp=unconfined'
if( eng=='podman' )
return '--rm --device /dev/fuse'
if( singularityOciMode() )
return '-B /dev/fuse'
if( eng=='singularity' || eng=='apptainer' )
return null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class WaveDebugCmd {

protected WaveRunCmd buildWaveRunCmd(String scheme) {
final result = new WaveRunCmd(session)
result.withContainerParams([tty:true, privileged: true])
result.withContainerParams([tty:true])
if( scheme=='s3' ) {
result.withEnvironment('AWS_ACCESS_KEY_ID')
result.withEnvironment('AWS_SECRET_ACCESS_KEY')
Expand Down

0 comments on commit f6f4c1c

Please sign in to comment.