xiexianbin / blog-comments

MIT License
0 stars 0 forks source link

hpc/singularity/index #7

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Singularity 容器使用介绍-谢先斌的博客

Singularity 是一个用于HPC(高性能计算)的容器系统,以安全为主,并兼容Docker。

https://www.xiexianbin.cn/hpc/singularity/index.html

jizhang02 commented 1 year ago

您好, 感谢您分享这篇教程。 我有一个问题,请问如何把anaconda环境导出到一个镜像里,谢谢

xiexianbin commented 1 year ago

@jizhang02 一个没有测试的示例,参考 https://docs.anaconda.com/anaconda/install/linux/

cat << EOF >> Singularity
Bootstrap: docker
From: ubuntu

%help
    help info for Ubuntu

%post
    apt-get -y update
    apt-get -y install wget
    sudo apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6
    wget -P /tmp https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh
    bash /tmp/Anaconda3-2022.10-Linux-x86_64.sh

...

EOF