Hello, I am probably missing something obvious, bu...
# modules
n
Hello, I am probably missing something obvious, but how do the community.wave.sequera containers that are specified in some nf-core modules (https://github.com/search?q=repo%3Anf-core%2Fmodules%20community.wave&type=code) work with the container.registry ? As far as I understand, the registry will be quite blindly added into the container url if a registry is given? Why does this not break when wave and e.g. biocontainers are mixed in one pipeline and registry is set to e.g. 'quay.io'?
m
any full URI such as
community.wave.seqera.io/
or
docker.io/
is recognized by Nextflow
the nf-core registry that we use as a default (
quay.io
) is just the default to use when it's not specified
similarly to when you do:
nextflow run hello
. it's actually
nextflow run https://github.com/nextflow-io/hello
the "registy" https://github.com is hidden and defined by default. Plus the org nextflow-io is hidden and defined by default
n
I think the container registry comes in a different place than the repo registry, no? I guess you tested this so I assume it works the way it is done right now, but I do not really understand where in the ContainerBuilder the checks (I can see that docker:// would be removed from the image name though) happen before adding the registry (https://github.com/nextflow-io/nextflow/blob/master/modules/nextflow/src/main/groovy/nextflow/container/ContainerHandler.groovy#L155) . I am mainly asking because I noticed that the container registry with charliecloud does not work and was looking into it and got a bit confused
m
yeah, the container registry is a different place than the container registry, I was just trying to explain the idea behind it with another example within Nextflow
n
I understand the idea, but I dont really understand where / when the checks for the container name are done
I guess if it works like this it is handled somewhere, Ill try to find it
m
oh, I see
which Nextflow version are you using?
n
24.09.0-edge
m
and this:
Copy code
charliecloud.registry = 'quay.io'
is not working as expected?
n
No, it is not doing anything it seems, I do not understand why (full disclosure: i am the person who "implemented" the registry with charliecloud)
m
Oh I see
then you probably know WAY more than me on this issue
n
I am not sure if I do, but it made me wonder how / where the registry thing would check for the container name to prevent it from just adding quay.io/ before community
m
probably, for me the quay.io part should be added only if there is not a registry specified already
n
Yeah, it should