Hi folks! I realise that people are starting to ad...
# modules
p
Hi folks! I realise that people are starting to add Seqera Containers images into nf-core modules - which is great! However, please take note of a couple of points: • Please use
https://
instead of
oras://
Singularity images • Note that
nf-core download
does not yet work with these yet - it has hardcoded assumptions about the syntax and origin of images which needs updating. The reason for the
oras://
thing is: • Shared cache Nextflow options such as
$NXF_SINGULARITY_CACHEDIR
and
$NXF_SINGULARITY_LIBRARYDIR
do not work with this • Singularity must be installed to download images for offline use • It’s not supported by all versions of Singularity / Apptainer. Thankfully it's very easy to get the
https://
version from Singularity Containers - just click the
HTTPS
button below the container name (see attached gif). Regarding
nf-core download
- we have plans for fixing support here, but it'll take a bit of time to make it happen. Please take this into account when using Seqera Containers with modules and please test the download functionality yourselves.
👍 6
🙏 1
👍🏻 2
👍🏽 1
m
I have already improved the CI test to see if all containers of a pipeline can be downloaded. The problem with the
oras://
protocol would have been caught by the improved test. However, this may now be a tad too strict?
e
If anyone needs an
https://
for a container that was build via a environment.yml here's a script https://github.com/nf-core/modules/blob/master/.github/scripts/wave_singularity.py Feel free to ping me if you need help running it!
🚀 2
m
Thanks @Edmund for the script. Unless this will in the future be entirely handled by
nextflow inspect
, making an API request to Seqera Containers also to me seemed to be the only possible way of determining the equivalent images between
oras://
Singularity and the Docker version. Do you/we have the “official” permission from Seqera to directly query their API anonymously from nf-core #tools?
p
https container URLs won't be handled by nextflow inspect or a dedicate wave API endpoint, no (at least not any time soon)
No problem calling APIs directly, that's what they're there for. No guarantees from Seqera about stability but given the tight loop between us I think it should be fine.
👍 1
🙌🏻 1
All API calls are at dev time and not run time, so pipelines should be stable either way
a
Sorry to necro a very old post/thread, is this still required in 2026?
p
Good timing! @mashehu / @Julian Flesch have the latest but we are doing a new release of #tools basically now that has most of this thread's functionality built in
👍 1
m
https:// is still required (and we just merged an actual lint for it https://github.com/nf-core/tools/pull/4358 (so you should see it now in the modules repo CI)
👍 1
a
The linting is exactly why I went digging! So it's working haha
I'll keep using https, no a big issue but oras is much cleaner url!
p