将conda环境构建为singularity镜像
作者:互联网
1.打包conda环境
pip install conda-pack
conda pack -n yourEnvName
2.编写singularity构建文件
vim Singularity
Bootstrap: docker From: continuumio/miniconda3 %files yourEnvName.tar.gz /yourEnvName.tar.gz %post tar zxvf /yourEnvName.tar.gz -C /opt/conda conda-unpack rm /yourEnvName.tar.gz
3.创建镜像
将tar包和Singularity放在同一目录下
singularity build xxx.sif Singularity
标签:yourEnvName,tar,gz,conda,镜像,singularity,Singularity 来源: https://www.cnblogs.com/1016391912pm/p/16427093.html