Image size: 1.7 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://casa/casavlbi-rpicard:2026-08-04

Shell into the container

singularity shell library://casa/casavlbi-rpicard:2026-08-04

Run the container

singularity run library://casa/casavlbi-rpicard:2026-08-04

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://casa/casavlbi-rpicard:2026-08-04

Shell into the container

apptainer shell library://casa/casavlbi-rpicard:2026-08-04

Run the container

apptainer run library://casa/casavlbi-rpicard:2026-08-04
Bootstrap: docker
From: rockylinux:8

%labels
    Maintainer rPICARD Pipeline Build
    Description Singularity container for rPICARD (CASA VLBI pipeline) with CASA 6.7.5

%environment
    export LC_ALL=C
    export PATH=/opt/picard/picard:$PATH
    export PYTHONPATH=/opt/picard/picard:$PYTHONPATH

%post
    # Update system packages and install system dependencies
    dnf -y update
    dnf -y install \
        wget \
        tar \
        xz \
        git \
        findutils \
        python3 \
        libX11 \
        libXext \
        libXrender \
        libSM \
        libICE \
        libXft \
        glibc-langpack-en \
        openblas \
        gcc \
        gcc-c++ \
        make \
        zlib \
        zlib-devel

    # Ensure /usr/bin/python resolves to python3
    ln -s /usr/bin/python3 /usr/bin/python

    # Set up installation directory
    mkdir -p /opt
    cd /opt

    # 1. Download and extract CASA (EL8 build)
    wget ftp://ftp.mpifr-bonn.mpg.de/outgoing/mjanssen/casa-6.7.5-18-py3.12.el8.tar.xz
    tar xvJf casa-6.7.5-18-py3.12.el8.tar.xz
    rm casa-6.7.5-18-py3.12.el8.tar.xz

    # 2. Clone the rPICARD repository
    git clone https://bitbucket.org/M_Janssen/picard

    # 3. Execute setup.py non-interactively for all prompts
    cd /opt
    yes "" | python3 ./picard/setup.py -p casa-6.7.5-18-py3.12.el8

    # 4. Install AVICA Pipeline
    cd /opt
    git clone https://github.com/avikhagol/avica.git
    cd avica/
    # pip install .
    /opt/casa-6.7.5-18-py3.12.el8/bin/python3 -m pip install .

%runscript
    exec picard "$@"
Download casa-casavlbi-rpicard_2026-08-04.def
#!/bin/sh

    exec picard "$@"
# /.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 LC_ALL=C
    export PATH=/opt/picard/picard:$PATH
    export PYTHONPATH=/opt/picard/picard:$PYTHONPATH