Image size: 490.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://caracal/mosaicqueen:2024-01-26

Shell into the container

singularity shell library://caracal/mosaicqueen:2024-01-26

Run the container

singularity run library://caracal/mosaicqueen:2024-01-26

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://caracal/mosaicqueen:2024-01-26

Shell into the container

apptainer shell library://caracal/mosaicqueen:2024-01-26

Run the container

apptainer run library://caracal/mosaicqueen:2024-01-26
This container include mosaic-queen (https://github.com/caracal-pipeline/MosaicQueen), and dependencies, including montage and Python packages numpy, astropy, matplotlib, scipy. This container can be used as a kernel in Jupyter.
Bootstrap: debootstrap
MirrorURL: http://archive.ubuntu.com/ubuntu/
OSVersion: jammy

%labels
        APPLICATION_NAME Ubuntu LTS + montage + MosaicQueen
        OS_VERSION 22.04
        APPLICATION_URL https://github.com/caracal-pipeline/MosaicQueen

        SYSTEM_NAME ilifu
        SYSTEM_SINGULARITY_VERSION 3.9.1
        SYSTEM_URL http://www.ilifu.ac.za

        AUTHOR_NAME IDIA
        AUTHOR_EMAIL support@ilifu.ac.za

%help
        
        This container include mosaic-queen (https://github.com/caracal-pipeline/MosaicQueen), and dependencies, including montage and Python packages numpy, astropy, matplotlib, scipy. This container can be used as a kernel in Jupyter.

%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

        # Install MosaicQueen and dependencies (https://github.com/caracal-pipeline/MosaicQueen)
        apt-get install -y montage
        python -m pip install mosaic-queen

        # 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 caracal-mosaicqueen_2024-01-26.def
#!/bin/sh


	python "$@"
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow


     
        export LC_ALL=C