davecwright3/bart-singularity:latest
$ singularity pull shub://davecwright3/bart-singularity:latest
Singularity Recipe
Bootstrap: docker
From: ubuntu:20.04
%post
apt-get update -y && apt-get install -y build-essential bc wget git unzip
rm -rf /var/lib/apt/lists/*
CONDA_INSTALL_PATH="/opt/miniconda"
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $CONDA_INSTALL_PATH
rm -r miniconda.sh
. $CONDA_INSTALL_PATH/etc/profile.d/conda.sh
mkdir /bart_dir
cd /bart_dir
mkdir run
git clone --recursive https://github.com/exosports/BART BART/
conda env create -f /bart_dir/BART/environment.yml
conda activate bart
echo ". $CONDA_INSTALL_PATH/etc/profile.d/conda.sh" >> /.singularity_bashrc
echo "conda activate bart" >> /.singularity_bashrc
cd /bart_dir/BART/modules/transit/
make
cd /bart_dir/BART/modules/MCcubed/
make
%environment
CONDA_INSTALL_PATH="/opt/miniconda"
CONDA_BIN_PATH="/opt/minconda/bin"
SINGULARITY_SHELL=/bin/bash
topdir="/bart_dir"
action="${0##*/}"
if [ "$action" == "shell" ]; then
if [ "${SINGULARITY_SHELL:-}" == "/bin/bash" ]; then
set -- --noprofile --init-file /.singularity_bashrc
elif test -z "${SINGULARITY_SHELL:-}"; then
export SINGULARITY_SHELL=/bin/bash
set -- --noprofile --init-file /.singularity_bashrc
fi
fi
export PATH="$CONDA_BIN_PATH:$PATH"
export topdir
%runscript
exec /bin/bash --noprofile --init-file /.singularity_bashrc "$@"
%labels
Maintainer David Wright <davecwright@knights.ucf.edu>
License See README or /bart_dir/BART/license in container
Version v1.0
Collection
- Name: davecwright3/bart-singularity
- License: Other
View on Datalad
Metrics
key | value |
---|---|
id | /containers/davecwright3-bart-singularity-latest |
collection name | davecwright3/bart-singularity |
branch | master |
tag | latest |
commit | 0f7595c6f664cf94abd8a65afd827e230d41771b |
version (container hash) | 26d7531d71e9fcdcbc10367aaffc8271 |
build date | 2020-11-13T16:00:28.462Z |
size (MB) | 3068.0 |
size (bytes) | 1350062111 |
SIF | Download URL (please use pull with shub://) |
Datalad URL | View on Datalad |
Singularity Recipe | Singularity Recipe on Datalad |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.