Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nextflow config update (autoMounts, envWhitelist) #18

Merged
merged 9 commits into from
Jun 28, 2021
4 changes: 4 additions & 0 deletions doc/source/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ The Nextflow configuration file is used to configure various settings for the *k
singularity {
enabled = true
cacheDir = ''
autoMounts = true
envWhitelist = ''
Cecilia-Sensalari marked this conversation as resolved.
Show resolved Hide resolved
}
docker {
enabled = false
Expand All @@ -150,6 +152,8 @@ The Nextflow configuration file is used to configure various settings for the *k

* **enable** enables or disables the use of the respective container
* **cacheDir** the directory where remote the Singularity image from Docker Hub is stored. When using a computing cluster it must be a shared folder accessible to all computing nodes.
* **autoMounts** automatically mounts host paths in the executed container
* **envWhitelist** accepts a comma separated list of environment variable names to be included in the container environment. Include 'NSLOTS' if working on a SGE cluster
Cecilia-Sensalari marked this conversation as resolved.
Show resolved Hide resolved

* The **executor.name** setting defines the system type or HPC scheduler to be used (e.g. ``sge``, ``local``)
* The **process** scope defines the configuration for the processes of the *ksrates* pipeline:
Expand Down
1 change: 1 addition & 0 deletions doc/source/template_singularity_nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
singularity {
enabled = true
cacheDir = '' // set a directory where to download the container file
autoMounts = true // to automatically mount host paths in the executed container
// envWhitelist = 'NSLOTS' // to be used when running the Singularity container on a SGE cluster
}

Expand Down
3 changes: 2 additions & 1 deletion example/custom_nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
// CONTAINER SETTINGS:
singularity {
enabled = true
// envWhitelist = 'NSLOTS' // to be used when running the Singularity container on a SGE cluster
// cacheDir = '' // to set a directory where to download the container file
autoMounts = true // to automatically mount host paths in the executed container
// envWhitelist = 'NSLOTS' // to be used when running the Singularity container on a SGE cluster
Cecilia-Sensalari marked this conversation as resolved.
Show resolved Hide resolved
}
// docker.enabled = true

Expand Down
3 changes: 2 additions & 1 deletion test/custom_nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
// CONTAINER SETTINGS:
singularity {
enabled = true
// envWhitelist = 'NSLOTS' // to be used when running the Singularity container on a SGE cluster
// cacheDir = '' // to set a directory where to download the container file
autoMounts = true // to automatically mount host paths in the executed container
// envWhitelist = 'NSLOTS' // to be used when running the Singularity container on a SGE cluster
Cecilia-Sensalari marked this conversation as resolved.
Show resolved Hide resolved
}
// docker.enabled = true

Expand Down