Skip to content

Conversation

@jeffquinn-msk
Copy link

No description provided.

if (executor == 'docker') {
return '-u root:root -e USERID=$UID -e XDG_CACHE_HOME=tmp/quarto_cache_home -e XDG_DATA_HOME=tmp/quarto_data_home -e QUARTO_PRINT_STACK=true'
} else if (executor == 'singularity') {
return '--env USERID=$UID --env XDG_CACHE_HOME=tmp/quarto_cache_home --env XDG_DATA_HOME=tmp/quarto_data_home --env QUARTO_PRINT_STACK=true'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For environment variables it would probably be better to set them in the task definition itself on second thought, passing them to the container options is confusing. Nextflow by default passes all env variables from the calling process down into the container anyway, and for the hardcoded ones, you can hard code them in the process block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant