kernsuite/kern:v7.0.0
Version sha256.3e2072c29eaeb529888b217edaadd27b83d70c63af6f228f78872202e7737bea
Image size: 2.6 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://kernsuite/kern:v7.0.0
Shell into the container
singularity shell library://kernsuite/kern:v7.0.0
Run the container
singularity run library://kernsuite/kern:v7.0.0
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://kernsuite/kern:v7.0.0
Shell into the container
apptainer shell library://kernsuite/kern:v7.0.0
Run the container
apptainer run library://kernsuite/kern:v7.0.0
BootStrap: docker
From: ubuntu:20.04
%labels
APPLICATION_NAME Ubuntu LTS + kernsuite + CubiCal + PyBDSF + Montage
OS_VERSION 20.04
SYSTEM_NAME iLifu
SYSTEM_SINGULARITY_VERSION 3.9
SYSTEM_URL http://www.ilifu.ac.za
AUTHOR_NAME Jeremy Smith
AUTHOR_EMAIL jeremy@idia.ac.za
%environment
export LC_ALL=C
export SOFTWARE_PATH=/opt
export PATH=$SOFTWARE_PATH/Montage/bin:$PATH
export KARMABASE=/usr
%post
##############################################################################
# Setting up Environment
# Create Installation Directories and export paths. This is needed as part of post.
# %environment scriptlet does not define these paths during %post only after.
mkdir -p /opt
export SOFTWARE_PATH=/opt
export DEBIAN_FRONTEND=noninteractive
# Fix command prompt in Singularity 3.5.2
printf 'export PS1="\u@$SINGULARITY_NAME:\w$ "' > /.singularity.d/env/999-psvars.sh
###############################################################################
# Create Installation Directories and export paths. This is needed as part of post.
# %environment scriptlet does not define these paths during %post only after.
apt-get update -y
apt-get install -y software-properties-common
apt-get install -y wget vim apt-utils git build-essential bzip2 libpng-dev
add-apt-repository -s ppa:kernsuite/kern-7
apt-add-repository multiverse
apt-add-repository restricted
apt-get update
apt-get install -y 21cmfast
# apt-get install -y aaartfaac2ms
apt-get install -y aoflagger aoflagger-dev libaoflagger0
apt-get install -y python3-attrdict
apt-get install -y attrdict
apt-get install -y libblitz0v5 libblitz0-dev
apt-get install -y brats
apt-get install -y casacore-dev casacore-doc casacore-doc casacore-tools libcasa-casa5 libcasa-casa6 libcasa-coordinates5 libcasa-coordinates6 libcasa-derivedmscal5 libcasa-derivedmscal6 libcasa-fits5 libcasa-fits6 libcasa-images5 libcasa-images6 libcasa-lattices5 libcasa-lattices6 libcasa-meas5 libcasa-meas6 libcasa-measures5 libcasa-measures6 libcasa-mirlib5 libcasa-mirlib6 libcasa-ms5 libcasa-ms6 libcasa-msfits5 libcasa-msfits6 libcasa-python3-5 libcasa-python3-6 libcasa-scimath-f5 libcasa-scimath-f6 libcasa-scimath5 libcasa-scimath6 libcasa-tables5 libcasa-tables6
apt-get install -y casacore-data
apt-get install -y casalite
apt-get install -y casarest
apt-get install -y chgcentre
apt-get install -y python3-cubical
apt-get install -y cubical
# apt-get install -y ddfacet
# apt-get install -y difmap
# apt-get install -y dp3 python-dp3
apt-get install -y dysco dysco-dev libdyscostman2
apt-get install -y eht-imaging python3-eht-imaging
apt-get install -y python3-future-fstrings future-fstrings
apt-get install -y idg-dev idg-doc libidg-api0 libidg-common0 libidg-cpu0 libidg-cuda0 libidg-external0 libidg-fft0 libidg-hybrid-cuda0 libidg-util0 libidg0 python3-idg
apt-get install -y karma
apt-get install -y python3-katpoint
apt-get install -y katversion python3-katversion
# apt-get install -y python-katversion python-katpoint python-casacore
# apt-get install -y python3-katdal
apt-get install -y kittens python3-astro-kittens
apt-get install -y libelementresponse3 libstationresponse3 lofarbeam-dev python3-lofarbeam
apt-get install -y losoto python3-losoto
apt-get install -y python3-lsmtool
apt-get install -y makems
# apt-get install -y meqtrees python-meqtrees-cattery
apt-get install -y libmeqtrees-timba0 meqtrees-timba python3-meqtrees-timba
apt-get install -y msutils python3-msutils
apt-get install -y owlcat python3-owlcat
# apt-get install -y polygon2
apt-get install -y polygon3
apt-get install -y purr python3-purr
apt-get install -y pybdsf
apt-get install -y pybind11-dev pybind11-doc python3-pybind11
apt-get install -y python3-pyfftw python3-pyfftw-doc
# apt-get install -y pymoresane python-pymoresane
# apt-get install -y python-slalib python3-slalib
apt-get install -y pymonetdb python3-pymonetdb
apt-get install -y python3-slalib slalib
apt-get install -y python3-casacore
apt-get install -y python3-pyxis pyxis
# apt-get install -y python-rfimasker rfimasker
apt-get install -y python3-rmextract rmextract
# apt-get install -y rpfits
apt-get install -y python3-scabha scabha
# apt-get install -y sched
apt-get install -y python3-sharedarray sharedarray
apt-get install -y python3-simms simms
# apt-get install -y python-shm
# apt-get install -y simfast21
apt-get install -y python3-spead2 spead2
apt-get install -y stimela python3-stimela
apt-get install -y python3-astro-tigger
apt-get install -y python3-astro-tigger-lsm tigger-lsm
apt-get install -y tirific
apt-get install -y python3-tokenize-rt tokenize-rt
# apt-get install -y libtmv-symband0 libtmv0 tmv-dev
apt-get install -y python3-xmlrunner
apt-get install -y libwsclean2 wsclean wsclean-dev
#Kernsuite packages not included:
#carta carta-remote python-future-fstrings future-fstrings idg-dev idg-doc libidg libidg-api0 libidg-common0 libidg-cpu0 libidg-cuda0 libidg-external0 libidg-fft0 libidg-hybrid-cuda0 libidg-util0 libidg0 python3-idg libapplcommon3 libblob3 libcommon3 libdocker3 liblmwcommon3 liblofar-pyparameterset3 liblofar-pyparmdb3 liblofar-pytools3 libmessagebus3 libmslofar3 libparmdb3 lofar lofar-dev lofar-doc python3-lofar lsmtool python-lsmtool python-pymonetdb python3-pymonetdb python-scabha scabha singularity-container python-sourcery python-astro-tigger tigger python-tokenize-rt
apt-get install -y python3-pip libboost-all-dev wcslib-dev libcfitsio-dev cmake
pip3 install ipykernel
pip3 install presto atpy psutil katdal msutils parseltongue peasoup pyfftw pymonetdb attrdict blitz cub gsm astro-tigger astro-tigger-lsm virtualenv tensorflow
#pip3 install git+https://github.com/ratt-ru/CubiCal.git
#pip3 install git+https://github.com/ratt-ru/CubiCal.git@1.4.0
# Installation of PyBDSF
apt-get install -y libboost-python-dev libboost-numpy-dev python-setuptools gfortran build-essential
pip3 install --upgrade setuptools numpy scipy pyfits pywcs
cd $SOFTWARE_PATH
git clone https://github.com/lofar-astron/PyBDSF.git
cd PyB*
python3 setup.py install
# Montage 5.x
cd $SOFTWARE_PATH
wget -O - http://montage.ipac.caltech.edu/download/Montage_v6.0.tar.gz | tar zx
cd Montage
make
# Install latest wsclean
# apt-get install -y libgsl-dev libhdf5-dev libfftw3-dev libboost-dev libboost-date-time-dev libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-thread-dev libcfitsio-dev cmake g++ libblas-dev liblapack-dev
# cd $SOFTWARE_PATH
# wget -O - https://gitlab.com/aroffringa/wsclean/-/archive/v2.10/wsclean-v2.10.tar.gz | tar -xz
# cd wsclean*
# cd wsclean
# mkdir -p build
# cd build
# cmake ../
# make -j 4
# make install
# fix for kvis
ln -s /usr/share/karma/fonts.dat /usr/share/fonts.dat
# Clean-up
apt-get clean
apt-get autoclean
%runscript
if [ $# -eq 0 ]; then
echo "The following Python modules are installed in this image:"
pip3 freeze
echo "Example usage: singularity.simg [command] [args] [options]"
else
exec "$@"
fi
Download kernsuite-kern_v7.0.0.def