Image size: 221.8 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/gmrt-utilities:2026-02-07

Shell into the container

singularity shell library://calibration/gmrt-utilities:2026-02-07

Run the container

singularity run library://calibration/gmrt-utilities:2026-02-07

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/gmrt-utilities:2026-02-07

Shell into the container

apptainer shell library://calibration/gmrt-utilities:2026-02-07

Run the container

apptainer run library://calibration/gmrt-utilities:2026-02-07
Bootstrap: debootstrap
MirrorURL: http://archive.ubuntu.com/ubuntu/
OSVersion: bionic
Include: software-properties-common

%labels
    APPLICATION_NAME listscan gvfits
    SYSTEM_NAME ilifu
    SYSTEM_SINGULARITY_VERSION 4.1.3
    SYSTEM_URL http://www.ilifu.ac.za
    AUTHOR_NAME ilifu support
    AUTHOR_EMAIL support@ilifu.ac.za

%environment
    export PATH=$PATH:/opt
    export LC_ALL=C.UTF-8

%post
    ##############################################################################
    # Setting up Environment
    mkdir -p /opt
    export INSTALLER_PATH=/opt
    export LC_ALL=C.UTF-8

    # Fix command prompt in Singularity
    printf 'export PS1="\u@$SINGULARITY_NAME:\w$ "' > /.singularity.d/env/999-psvars.sh
    ###############################################################################

    # 1. Enable 32-bit architecture (Crucial for legacy GMRT tools)
    dpkg --add-architecture i386
    
    apt-add-repository multiverse
    apt-get update -y
    
    # 2. Install necessary tools and compatibility libraries
    # Including tar, gzip, and 32-bit glibc/ncurses
    apt-get install -y wget vim apt-utils git bzip2 build-essential \
                       strace pkg-config libgfortran3 file tar \
                       libc6:i386 libncurses5:i386 libstdc++6:i386

    cd /opt
    
    # 3. Download the files as archives
    wget http://www.ncra.tifr.res.in/ncra/gmrt/gmrt-users/aips-help/listscan-2.03 -O listscan
    wget http://www.ncra.tifr.res.in/ncra/gmrt/gmrt-users/aips-help/gvfits-2.03 -O gvfits.tar

    # 4. Extract the archives
    # This will extract the binaries inside. We use -f to overwrite if needed.
    tar -xvf gvfits.tar

    # 5. Ensure the binaries are named correctly and executable
    # If the tarball contained a differently named file, rename it here.
    # Based on your previous check, we expect files named 'listscan' and 'gvfits'.
    chmod +x listscan gvfits
    
    # Clean up the downloaded tarballs to save space
    rm *.tar

    # 6. Final Verification (Check build logs for "ELF 32-bit" or "ELF 64-bit")
    echo "--- FINAL VERIFICATION ---"
    file /opt/listscan
    file /opt/gvfits
    ldd /opt/gvfits || echo "Note: gvfits might be a static binary or 32-bit."

    # Cleanup the container
    apt-get clean
    apt-get autoclean
Download calibration-gmrt-utilities_2026-02-07.def
#!/bin/sh
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow


    export PATH=$PATH:/opt
    export LC_ALL=C.UTF-8