sofia/sofia:v2.4.1
Version sha256.71e55cc3d9b655d5cd1d52fd3907266106f80402e41070ffcd3efff6fa95fb4c
Image size: 213.1 MB
For more on pulling from the registry, see the ilifu documentation.
First, once: add the registry and make it your default
singularity remote add --no-login idia-registry https://sregistry.idia.ac.za
singularity remote use idia-registry
If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.
Log in, for a private collection
singularity remote login idia-registry
Paste a token from your token page when asked. Public collections need no login.
Pull the container
singularity pull library://sofia/sofia:v2.4.1
Shell into the container
singularity shell library://sofia/sofia:v2.4.1
Run the container
singularity run library://sofia/sofia:v2.4.1
First, once: add the registry and make it your default
apptainer remote add --no-login idia-registry https://sregistry.idia.ac.za
apptainer remote use idia-registry
If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.
Log in, for a private collection
apptainer remote login idia-registry
Paste a token from your token page when asked. Public collections need no login.
Pull the container
apptainer pull library://sofia/sofia:v2.4.1
Shell into the container
apptainer shell library://sofia/sofia:v2.4.1
Run the container
apptainer run library://sofia/sofia:v2.4.1
Bootstrap: debootstrap
MirrorURL: http://ftp.leg.uct.ac.za/ubuntu/
OSVersion: bionic
Include: software-properties-common
%labels
APPLICATION_NAME Ubuntu LTS + SoFiA2
APPLICATION_URL https://github.com/SoFiA-Admin/SoFiA-2
OS_VERSION 18.04
SYSTEM_NAME iLifu
SYSTEM_SINGULARITY_VERSION 3.5.2
SYSTEM_URL http://www.ilifu.ac.za
AUTHOR_NAME Jeremy Smith
AUTHOR_EMAIL jeremy@idia.ac.za
%environment
export LC_ALL=C
export SOFIA2_PATH="/opt/SoFiA-2"
export PATH="$PATH:/opt/SoFiA-2"
%post
# Create Installation Directories and export paths. This is needed as part of post.
# %environment scriptlet does not define these paths during %post, only after.
# Installation of initial packages
apt-get update -y
add-apt-repository universe
apt-get install -y wget vim apt-utils git bzip2 build-essential
# Install SoFiA2
apt-get install -y gcc wcslib-dev libopenmpi2 openmpi-bin openmpi-common
cd /opt
git clone https://github.com/SoFiA-Admin/SoFiA-2.git
cd SoFiA-2
#git checkout tags/v2.4.0
./compile.sh -fopenmp
# Fix command prompt in Singularity 3.5.2
printf 'export PS1="\u@$SINGULARITY_NAME:\w$ "' > /.singularity.d/env/999-psvars.sh
# Cleanup the container
apt-get clean
apt-get autoclean
%runscript
exec sofia "$@"
Download sofia-sofia_v2.4.1.def