Image size: 399.6 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://calibration/rssmos:2022-01-24

Shell into the container

singularity shell library://calibration/rssmos:2022-01-24

Run the container

singularity run library://calibration/rssmos:2022-01-24

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/rssmos:2022-01-24

Shell into the container

apptainer shell library://calibration/rssmos:2022-01-24

Run the container

apptainer run library://calibration/rssmos:2022-01-24
BootStrap: docker
From: ubuntu:18.04

%labels

    APPLICATION_NAME_BASE Ubuntu LTS + MeqSilhouette + dependencies
    OS_VERSION 18.04 

    SYSTEM_SINGULARITY_VERSION 3.5.2

    AUTHOR_NAME Robin Hall
    AUTHOR_EMAIL robin@idia.ac.za

%help
A base Ubuntu 18 Singularity container with RSSMOSPipeline software as per documentation specified at 
https://github.com/mattyowl/RSSMOSPipeline

%post
    # make opt directory for installs
    mkdir -p /opt
    export DEBIAN_FRONTEND=noninteractive

    # install utility packages and repositories
    apt-get update -y
    apt-get install -y wget vim gcc python3 unzip git time python3-pip
     
    apt-get install -y build-essential cmake gfortran g++ 
    
    # libncurses5-dev \
    #     libreadline-dev flex bison libblas-dev liblapacke-dev libcfitsio-dev \
    #     wcslib-dev libfftw3-dev libhdf5-serial-dev rsync \
    #     libboost-python-dev libboost-program-options-dev libboost-program-options1.65.1 \
    #     libboost-program-options1.65-dev libxml2-dev libxslt1-dev \
    #     dvipng

    # texlive-latex-extra texlive-fonts-recommended

    # install required packages
    # apt-get install -y \
    #     meqtrees \
    #     meqtrees-timba \
    #     tigger \
    #     tigger-lsm \
    #     python-astro-tigger \
    #     python-astro-tigger-lsm \
    #     casalite \
    #     wsclean \
    #     pyxis \
    #     python-casacore

    apt-get clean

    # install python dependencies
    pip3 install --upgrade pip
    pip3 install scipy numpy astropy IPython matplotlib tk
    # pip install --upgrade ipykernel

    # install RSSMOS
    pip3 install RSSMOSPipeline
    # cd
    # cd /opt
    # git clone https://github.com/mattyowl/RSSMOSPipeline.git
    # cd MeqSilhouette && pip install .
    # cd
    
%environment    
#     export MEQTREES_CATTERY_PATH=/usr/lib/python2.7/dist-packages/Cattery
    export PATH=/usr/local/bin:$PATH
    export PYTHONPATH=/usr/lib/python3.6/dist-packages 
#     # for Tigger
#     export LC_ALL=C

# %runscript
#     echo "Arguments received: $*"
    # rss_mos_reducer
Download calibration-rssmos_2022-01-24.def