laduma/laduma:2025-03-28
Version sha256.bb439ef972ddc03b80bcbf2878e83f088abf40de38030ec291d1d112378adfae
Image size: 1.7 GB
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://laduma/laduma:2025-03-28
Shell into the container
singularity shell library://laduma/laduma:2025-03-28
Run the container
singularity run library://laduma/laduma:2025-03-28
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://laduma/laduma:2025-03-28
Shell into the container
apptainer shell library://laduma/laduma:2025-03-28
Run the container
apptainer run library://laduma/laduma:2025-03-28
This container includes SoFiA2 master, SOLARKAT, SIP-LADUMA, HISS, WSCLEAN, SMops
Bootstrap: debootstrap
MirrorURL: http://archive.ubuntu.com/ubuntu/
OSVersion: jammy
%help
This container includes SoFiA2 master, SOLARKAT, SIP-LADUMA, HISS, WSCLEAN, SMops
%labels
APPLICATION_NAME Ubuntu LTS + SoFiA2 + SIP + ImageMagick
APPLICATION_URL https://github.com/SoFiA-Admin/SoFiA-2
OS_VERSION 22.04
SYSTEM_NAME iLifu
SYSTEM_SINGULARITY_VERSION 4.1.3
SYSTEM_URL http://www.ilifu.ac.za
AUTHOR_NAME IDIA
AUTHOR_EMAIL support@ilifu.ac.za
%environment
export LC_ALL=C
export SOFIA2_PATH="/opt/SoFiA-2"
export PATH="$PATH:/opt/SoFiA-2"
export PATH="$PATH:/opt/HISS"
export PYTHONPATH="$PYTHONPATH:/opt/build/EveryBeam/lib/python3.10"
export LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH"
%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.
export LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH"
# Installation of initial packages
export DEBIAN_FRONTEND=noninteractive
apt update -y
apt-get install -y software-properties-common
apt-get install -y wget gcc libxml2 curl gpg-agent build-essential git vim
# Packages
apt-add-repository -y universe
apt-get install software-properties-common
add-apt-repository -s ppa:kernsuite/kern-9
apt-add-repository multiverse
apt-add-repository restricted
apt-get update
apt-get install -y cmake g++ git pkg-config libblas-dev libboost-date-time-dev libboost-filesystem-dev libhdf5-serial-dev libboost-program-options-dev libboost-system-dev libcfitsio-dev libfftw3-dev libgsl-dev libhdf5-dev liblapack-dev libopenmpi-dev libpython3-dev pkg-config
apt-get install -y git vim python3 python3-pip python-is-python3 bzip2
## common packages
apt update -y
apt install -y python3-matplotlib python3-scipy python3-numpy python3-astropy python3-mpi4py
# Install SoFiA2
apt-get install -y gcc wcslib-dev libopenmpi-dev openmpi-bin openmpi-common
cd /opt
git clone https://gitlab.com/SoFiA-Admin/SoFiA-2.git
cd SoFiA-2
#git checkout tags/v2.5.0
./compile.sh -fopenmp
ln -s /opt/SoFiA-2/sofia /opt/SoFiA-2/sofia2
# Install EveryBeam dependencies https://everybeam.readthedocs.io/en/latest/build-instructions.html
apt-get -y install wget git make cmake gfortran g++ libncurses5-dev libreadline-dev flex bison liblapacke-dev doxygen libboost-all-dev libhdf5-dev libfftw3-dev libxml2-dev libgtkmm-3.0-dev libpython3-dev libcfitsio-dev wcslib-dev libfftw3-dev libgsl-dev
python3 -m pip install sphinx sphinx_rtd_theme breathe myst-parser
apt-get install -y python3-matplotlib python3-scipy python3-numpy python3-astropy python3-mpi4py
#apt-get install -y casacore-dev
# Clone and build casacore
mkdir -p /opt/build && cd /opt/build
git clone https://github.com/casacore/casacore.git
cd casacore
git fetch --all --tags
# Checkout a stable version (optional, replace with desired version)
git checkout v3.7.1
# Configure and build
mkdir -p build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DBUILD_PYTHON3=ON \
-DBUILD_TESTING=OFF \
-DUSE_FFTW3=ON \
-DUSE_HDF5=ON \
-DUSE_OPENMP=ON \
-DUSE_THREADS=ON
make -j$(nproc)
make install
# Install EveryBeam
mkdir -p /opt/build
cd /opt/build
export GIT_SSL_NO_VERIFY=1
#git clone --branch v0.5.1 --single-branch --recursive -j4 https://git.astron.nl/RD/EveryBeam.git
git clone --recursive -j4 https://git.astron.nl/RD/EveryBeam.git
cd EveryBeam
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt/EveryBeam -DBUILD_WITH_PYTHON=On ..
make install
#install pipx
apt-get update
apt-get -y install pipx
#Install SOLARKAT
python3 -m pip install stimela
python3 -m pip install cult-cargo
python3 -m pip install solarkat
# Install SIP
python3 -m pip install sofia-image-pipeline
# Install HISS
cd /opt
git clone https://github.com/healytwin1/HISS.git
#Instal SMops
python3 -m pip install smops
# Instal IDG
mkdir -p /opt/build
export IDGAPI_DIR=/usr/local/idg
export GIT_SSL_NO_VERIFY=1
cd /opt/build
git clone https://gitlab.com/astron-idg/idg.git
cd idg
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/idg/ ..
make -j 4
make install
# Install wsclean
cd /opt/build
#git clone -b v3.5 https://gitlab.com/aroffringa/wsclean.git
git clone https://gitlab.com/aroffringa/wsclean.git
cd wsclean
git submodule update --init --recursive
mkdir -p build
cd build
cmake -DPORTABLE=Yes -DIDGAPI_DIR=/usr/local/idg -DEveryBeam_DIR=/opt/EveryBeam/lib/everybeam ..
make -j 4
make install
# Clean Up
apt clean
apt autoclean
apt autoremove -y
Download laduma-laduma_2025-03-28.def
#!/bin/sh
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow
export LC_ALL=C
export SOFIA2_PATH="/opt/SoFiA-2"
export PATH="$PATH:/opt/SoFiA-2"
export PATH="$PATH:/opt/HISS"
export PYTHONPATH="$PYTHONPATH:/opt/build/EveryBeam/lib/python3.10"
export LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH"