Image size: 6.6 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://cigale/cigale:v2022.1-2024-08-13

Shell into the container

singularity shell library://cigale/cigale:v2022.1-2024-08-13

Run the container

singularity run library://cigale/cigale:v2022.1-2024-08-13

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://cigale/cigale:v2022.1-2024-08-13

Shell into the container

apptainer shell library://cigale/cigale:v2022.1-2024-08-13

Run the container

apptainer run library://cigale/cigale:v2022.1-2024-08-13
This container includes CIGALE (http://cigale.lam.fr) (alpha_irx branch), and dependencies, including Python packages astropy, numpy, matplotlib, scipy, and pcigale filters MIGHTEE_L and VLA_S. Run CIGALE using pcigale. 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 + CIGALE
        OS_VERSION 22.04
        APPLICATION_URL http://cigale.lam.fr

        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 includes CIGALE (http://cigale.lam.fr) (alpha_irx branch), and dependencies, including Python packages astropy, numpy, matplotlib, scipy, and pcigale filters MIGHTEE_L and VLA_S. Run CIGALE using pcigale. This container can be used as a kernel in Jupyter. 

%files
        # MIGHTEE_L.dat /opt/MIGHTEE_L.dat
        # VLA_S.dat /opt/VLA_S.dat
        filters_to_add /opt/filters_to_add

%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
        apt-get install -y git-lfs
        
        # Install CIGALE (http://cigale.lam.fr)
        python -m  pip install astropy numpy==1.26.4 scipy matplotlib configobj rich
        # sudo apt install git-lfs
        #cd /opt
        #git clone -b alpha_irx https://gitlab.lam.fr/cigale/cigale
        #cd cigale
        #python -m pip install .

        # Install CIGALE (http://cigale.lam.fr)
        cd /opt
        wget -O - https://gitlab.lam.fr/cigale/cigale/-/archive/v2022.1/cigale-v2022.1.tar.gz | tar zx
        cd cigale-*
        python -m pip install .

        cd /opt/filters_to_add/
        #pcigale-filters add "MIGHTEE_L.dat"
        pcigale-filters add *.dat 

        # 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 cigale-cigale_v2022.1-2024-08-13.def
#!/bin/sh


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


     
        export LC_ALL=C