Skip to content

kbseah/toy-wf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Toy Snakemake example to troubleshoot containerization of workflow with global conda directive

Snakemake 8 introduced a global conda directive

However, as of Snakemake v8.3.7, this does not appear to work with the containerization of the workflow into a container image with the --containerize option.

In this repo, the master branch could be containerized:

git checkout master
snakemake --sdm conda --cores 1 # runs successfully
snakemake --containerize > Dockerfile # runs successfully

The image is published at docker://kbseah/toy-wf:latest:

snakemake --sdm apptainer --cores 1 # use container image instead, runs successfully

However, if a global conda directive is added to the workflow, the snakemake --containerize command fails:

git checkout global
snakemake --sdm conda --cores 1 # runs succesfully with global conda directive
snakemake --containerize > Dockerfile # fails

About

troubleshooting containerization of Snakemake workflow with a global conda directive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published