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

Support Singularity successor Apptainer (Cannot enable more than one container engine -- Choose either one of: singularity, apptainer) #8

Closed
paulmenzel opened this issue Mar 22, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@paulmenzel
Copy link

singularity.enabled = true
singularity.autoMounts = true
singularity.cacheDir = "singularity/containers"

Apptainer is the successor of Singularity.

$ curl https://singularity.hpcng.org/
<!DOCTYPE html>
<html>             
    <head>
        <meta http-equiv="refresh" content="0; url='https://apptainer.org/index.html'" />
    </head>
    <body>
        <h2 style="text-align: center; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;">This page has been moved to our new domain! ( apptainer.org ). Please wait well we redirect you. </h2>
[…]

Nextflow supports a variety of container runtimes, including Apptainer. It’d be nice, if SIMPLI would support it too and not hardcode Singularity.

$ ./launch.sh run https://github.com/ciccalab/SIMPLI -profile test -with-apptainer /dev/shm/nextflow/singularity/containers/simpli_imaging-default-simpli_imctools_stardist-test.img
N E X T F L O W  ~  version 23.02.1-edge
Launching `https://github.com/ciccalab/SIMPLI` [condescending_dalembert] DSL2 - revision: 09e3bd432a [master]
Cannot enable more than one container engine -- Choose either one of: singularity, apptainer
@MicheleBortol
Copy link
Contributor

MicheleBortol commented Mar 26, 2023

Hi @paulmenzel,

Thank you for pointing this out it is a good suggestion. I updated the nextflow.config file to support both apptainer and singularity. See e9fc4f1 for details. To run the pipeline now you need to specify either apptainer or singularity as a profile. For instance:

  • nextflow run ciccalab/SIMPLI -profile test,singularity
  • nextflow run ciccalab/SIMPLI -profile test,apptainer
    Using the -with--aptainer option is not possible because SIMPLI depends on 3 separate containers.

Please let me know if this works for you.

Best wishes

Michele

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants