Image size: 631.1 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://barolo/barolo:v1.6.6

Shell into the container

singularity shell library://barolo/barolo:v1.6.6

Run the container

singularity run library://barolo/barolo:v1.6.6

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://barolo/barolo:v1.6.6

Shell into the container

apptainer shell library://barolo/barolo:v1.6.6

Run the container

apptainer run library://barolo/barolo:v1.6.6
Bootstrap: debootstrap
MirrorURL: http://archive.ubuntu.com/ubuntu/
OSVersion: focal

%labels

    APPLICATION_NAME_BASE Ubuntu LTS + BBarolo
    OS_VERSION 20.04 

    SYSTEM_NAME iLifu
    SYSTEM_SINGULARITY_VERSION 3.5.2
    SYSTEM_URL http://www.ilifu.ac.za

    AUTHOR_NAME Jeremy Smith
    AUTHOR_EMAIL jeremy@idia.ac.za

%environment
    export PATH="$PATH:/opt/Bbarolo"

%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 INSTALLER_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
        ###############################################################################

        # Installation of the utility packages and repositories
        apt-get update -y
        apt-get install -y software-properties-common
        apt-get install -y wget vim apt-utils git bzip2 build-essential cmake
        
        # Install package requirements
        apt-add-repository universe
        apt-get update -y
        apt-get install -y libfftw3-dev wcslib-dev libcfitsio-dev zlib1g-dev gnuplot python3-pip qt5-default python-is-python3
        python -m pip install --upgrade pip
        python -m pip install astropy scipy pandas matplotlib numpy

        # Install BBarolo https://github.com/editeodoro/Bbarolo
        cd $INSTALLER_PATH
        git clone -b master --single-branch https://github.com/editeodoro/Bbarolo
        cd Bbarolo
        ./configure
        make
        make install
        make gui
        make pybbinst

        cd /opt/Bbarolo
        python setup.py install 

        #fix exec error for pyBBarolo.util
        chmod +x /usr/local/lib/python3.8/dist-packages/pyBBarolo/BBarolo
        sed -i 's/    os.chmod(BBexe,  stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)/#    os.chmod(BBexe,  stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)/' /usr/local/lib/python3.8/dist-packages/pyBBarolo/wrapper.py

        # Clean Up
        apt-get clean
        apt-get autoclean
        apt-get autoremove -y
        rm -rf "/.cache" "/root/.cache"
Download barolo-barolo_v1.6.6.def