Image size: —

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/iraf:latest

Shell into the container

singularity shell library://calibration/iraf:latest

Run the container

singularity run library://calibration/iraf:latest

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/iraf:latest

Shell into the container

apptainer shell library://calibration/iraf:latest

Run the container

apptainer run library://calibration/iraf:latest
This container contains IRAF software (https://iraf-community.github.io/).
Bootstrap: debootstrap
MirrorURL: http://archive.ubuntu.com/ubuntu/
OSVersion: focal

%help
    This container contains IRAF software (https://iraf-community.github.io/).

%labels

    APPLICATION_NAME_BASE Ubuntu LTS + IRAF 2.17
    OS_VERSION 20.04 

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

    AUTHOR_NAME Jeremy Smith
    AUTHOR_EMAIL jeremy@idia.ac.za

%environment
        
        export INSTALLER_PATH=/opt
        export PATH=$INSTALLER_PATH/iraf-2.17/bin/:$PATH
        export PATH=$INSTALLER_PATH/ds9:$PATH

%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 gcc make flex wget build-essential
        apt-get install -y libcurl4-openssl-dev libexpat-dev libreadline-dev
	
	#Install dfits and fitsort
	apt-add-repository -y universe
	apt-get install -y qfits-tools
	        
        cd $INSTALLER_PATH
        wget https://github.com/iraf-community/iraf/archive/refs/tags/v2.17.tar.gz
        tar zxf v2.17.tar.gz
        rm v2.17.tar.gz
        cd iraf-2.17/
        ./install
        export PATH=$INSTALLER_PATH/iraf-2.17/bin/:$PATH
        make linux64
        make sysgen 2>&1 | tee build.log

        # Install DS9 - http://ds9.si.edu/site/Home.html
        apt-get install -y libtk8.6
        mkdir $INSTALLER_PATH/ds9
        cd $INSTALLER_PATH/ds9
        wget -O - http://ds9.si.edu/download/ubuntu20/ds9.ubuntu20.8.3.tar.gz | tar zx

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


        
        export INSTALLER_PATH=/opt
        export PATH=$INSTALLER_PATH/iraf-2.17/bin/:$PATH
        export PATH=$INSTALLER_PATH/ds9:$PATH