Dear all, I run Nextflow from an EC2 instance, and...
# nostupidquestions
a
Dear all, I run Nextflow from an EC2 instance, and I configured a pull-through cache rule in my ECR to store quay.io images (this way they are fetched only once, and each time my Nextflow pipeline needs the same image, the image is served from the ECR, avoiding reiterated pulls from quay.io) while I test my pipeline. This setup works. However, some nf-core modules rely on quay.io-stored biocontainers images, while others point directly to community.wave.seqera. Suppose that (I haven't tried it yet): • I define another pull-through cache rule to store community.wave.seqera images in my ECR • I patch each nf-core module to remove the substring
community.wave.seqera/
from the module's
container
name Would I be able to set
docker.registry
to two ECR addresses:
<MY_AWS_ECR_URI>/quay.io
and
<MY_AWS_ECR_URI>/community.wave.seqera
?
m
I would use a custom config to override any container declaration with whatever you need, similarly to how #rnaseq is dealing with arm container. Pointing to whichever endpoint/registry you need
There might be some smarter options, so I'm interested to see what other people are proposing
p
You can just use Wave mirroring, which is designed to do exactly this; https://docs.seqera.io/wave/nextflow/use-cases#mirror-containers-across-registries
Otherwise yes, creating a custom config is the way to go
When we are done over in #wg-container-conversion-task-force and have moved (almost) everything over to Seqera Containers, (almost) everything will be on the same base URL and
docker.registry
should work for most pipelines šŸ¤žšŸ»
meow love 1
a
Thank you both! šŸ™‚ I'll check both solutions
@Maxime Garcia, I see that you can define a list of containers in
arm.config
and use them via the
-profile arm
to overwrite the default container set by the nf-core module without patching the module. I didn't know that it was a possibility. Thanks for pointing it out!
m
That's one of the things I like the most about Nextflow, it's easy to control lots of things with configs. And overwrite sooo much
a
@Phil Ewels thanks for the link, I didn't know about the mirroring possibility. I'll talk about this with my colleagues IT
šŸ‘šŸ» 1
m
I'd say, my solution is a quick hack and easy to make it work when trying things. Phil's solution is what I would recommend to do on the long term
šŸ‘ 1
And of course there is plenty of room for tinkering in between both