mightee-pol/rmextract:2024-02-08
Version sha256.fcae52d1015f88e59a6c12c012f9f87ae1c11812e26cf0cd199b1a8c9b2ee3f6
Image size: 553.3 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://mightee-pol/rmextract:2024-02-08
Shell into the container
singularity shell library://mightee-pol/rmextract:2024-02-08
Run the container
singularity run library://mightee-pol/rmextract:2024-02-08
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://mightee-pol/rmextract:2024-02-08
Shell into the container
apptainer shell library://mightee-pol/rmextract:2024-02-08
Run the container
apptainer run library://mightee-pol/rmextract:2024-02-08
RMextract is Python software to extract TEC, vTEC, Earthmagnetic field and Rotation Measures (RM)
from GPS and WMM data for radio interferometry observations.
Bootstrap: debootstrap
MirrorURL: http://archive.ubuntu.com/ubuntu/
OSVersion: jammy
%labels
APPLICATION_NAME Ubuntu LTS + RMextract
OS_VERSION 22.04
APPLICATION_URL https://pypi.org/project/RMextract/
SYSTEM_NAME ilifu
SYSTEM_SINGULARITY_VERSION 3.9
SYSTEM_URL http://www.ilifu.ac.za
AUTHOR_NAME IDIA
AUTHOR_EMAIL support@ilifu.ac.za
%help
RMextract is Python software to extract TEC, vTEC, Earthmagnetic field and Rotation Measures (RM)
from GPS and WMM data for radio interferometry observations.
%environment
export LC_ALL=C
%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.
mkdir -p /opt
export DEBIAN_FRONTEND=noninteractive
# Installation of initial packages
apt-get update -y && apt-get dist-upgrade -y
apt-get install -y software-properties-common
add-apt-repository -y universe
apt-get update -y
apt-get install -y wget vim apt-utils git build-essential bzip2 curl pkg-config python-is-python3 python3-pip gfortran
apt-get install -y casacore-dev casacore-data
# Install python packages
python -m pip install numpy scipy astropy
# Install RMextract
cd /opt
git clone https://github.com/lofar-astron/RMextract.git
cd RMextract
python setup.py build
python setup.py install
# Install IPykernel for Jupyter
python -m pip install ipykernel
# 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
python "$@"
Download mightee-pol-rmextract_2024-02-08.def
#!/bin/sh
python "$@"
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow
export LC_ALL=C