Image size: 3.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://calibration/polkat:v0.0.1

Shell into the container

singularity shell library://calibration/polkat:v0.0.1

Run the container

singularity run library://calibration/polkat:v0.0.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://calibration/polkat:v0.0.1

Shell into the container

apptainer shell library://calibration/polkat:v0.0.1

Run the container

apptainer run library://calibration/polkat:v0.0.1
Bootstrap: library
From: ubuntu:22.04
Stage: build

%post
	echo "Here we are installing software and other dependencies for the container!"
	apt update -y
	apt install -y software-properties-common wget rsync
	apt update -y
	apt upgrade -y 
	
    # add-apt-repository -s ppa:kernsuite/kern-8
	apt-add-repository multiverse
	apt-add-repository restricted
	apt update -y
	
	ln -fs /usr/share/zoneinfo/Canada/Mountain /etc/localtime
	DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata	
	
	apt install -y build-essential gfortran g++ libcfitsio-dev wcslib-dev casacore-dev wget git \
		make cmake g++ doxygen libboost-all-dev libhdf5-dev libfftw3-dev libblas-dev \
		liblapack-dev libgsl-dev libxml2-dev libgtkmm-3.0-dev libpython3-dev \
		python3-distutils casacore-tools python3-casacore cmake curl libcfitsio-dev libgsl-dev \
		casacore-data python3-pip fuse libfuse2
		
    # Install python scripts
	python3 -m pip install --upgrade pip 
	python3 -m pip install numpy wheel setuptools quartical breizorro shadems owlcat tricolour
	python3 -m pip install sharedarray astropy datetime argparse ephem pytz
	python3 -m pip install git+https://github.com/caracal-pipeline/crystalball@0.4.1
    python3 -m pip install regions==0.5
	python3 -m pip install git+https://github.com/AKHughes1994/ragavi@master
    
    # Install casa
    wget https://casa.nrao.edu/download/distro/casa-pipeline/release/linux/casa-6.4.1-12-pipeline-2022.2.0.64-py3.6.tar.xz
    tar -xvf casa-6.4.1-12-pipeline-2022.2.0.64-py3.6.tar.xz
    
    # Update casa leap tabel
	cd casa-6.4.1-12-pipeline-2022.2.0.64/data
	rsync -avz rsync://casa-rsync.nrao.edu/casa-data .
	cd ../../
    
    # Install EveryBeam
	echo "Installing Everybeam"
	git clone --recursive -j4 -b v0.5.2 https://git.astron.nl/RD/EveryBeam.git
	cd EveryBeam
	mkdir build && cd build
	cmake ../
	make install
	cd ../../
    
    # Install wsclean
	git clone -b master https://gitlab.com/aroffringa/wsclean.git
	cd wsclean
	mkdir -p build
	cd build
	cmake ../ -DCMAKE_PREFIX_PATH="../../EveryBeam/"
	make -j 4
	make install
	cd ../../
    
%environment
    export PATH=$PATH://casa-6.4.1-12-pipeline-2022.2.0.64/bin

	
Download calibration-polkat_v0.0.1.def
#!/bin/sh

    /bin/bash "$@"
# /.singularity.d/env/10-docker2singularity.sh
#!/bin/sh
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow


    export PATH=$PATH://casa-6.4.1-12-pipeline-2022.2.0.64/bin