Hi, I try to integrate a docker image as container...
# modules
m
Hi, I try to integrate a docker image as container in my modules. This is is what I am doing:
Copy code
process sortAnnotationForBindingSiteFinder {
    tag "$meta.id"
    label 'process_single'

    container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
    'docker://melinak/bindingsitefinder:latest':
    'melinak/bindingsitefinder:latest' }"
But I get some errors. Is there a standardised way to do it? Thanks in advance for your help
m
Since you're using the docker container for your module whether you're using docker or singularity, remove the entire conditional:
Copy code
container "melinak/bindingsitefinder:latest"
For reproducibility purposes, it's also useful to use a version tag rather than
latest
m
Thank you! That works now 🙂 I also changed to use a version number 👍