apptainer / singularity

Singularity has been renamed to Apptainer as part of us moving the project to the Linux Foundation. This repo has been persisted as a snapshot right before the changes.
https://github.com/apptainer/apptainer
Other
2.53k stars 424 forks source link

how to handle this error in creating an image from recipe #2913

Closed youngestuser closed 5 years ago

youngestuser commented 5 years ago

Version of Singularity:

singularity-2.4

Expected behavior

build a image from recipe

Actual behavior

singularity build env.image tensorflow-1.6-gpu-cuda90 an error occur : ABORT: Aborting with RETVAL=255 Cleaning up...

Steps to reproduce behavior

Anybody konw how to solve this problem?

youngestuser commented 5 years ago

singularity recipe Bootstrap: docker From: nvidia/cuda:9.0-cudnn7-runtime-centos7

%post

install other needed packages

yum update
yum install -y wget  \
     vim
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-4.5.1-Linux-x86_64.sh
bash /home/Miniconda3-4.5.1-Linux-x86_64.sh -b -p /home/miniconda3
rm /home/Miniconda3-4.5.1-Linux-x86_64.sh
source /.bashrc
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
conda config --set show_channel_urls yes
conda creat -n lwz python=3.6
conda activate lwz

%environment export PATH=/home/miniconda3/bin:$PATH

youngestuser commented 5 years ago

look forward to your help ,thank you!

jscook2345 commented 5 years ago

@youngestuser

Can you run with the -d flag and provide us the debug output from your build command?

youngestuser commented 5 years ago

@jscook2345 Thank you for your reply ,I have solved it by add some command lines in the recipe,I wonder it may lack "yum -y install epel-release" above.

jscook2345 commented 5 years ago

@youngestuser

Glad it worked out!