cigale/cigale:alpha-irx
Version sha256.b082ee9d511d1e660394adf97811a61e948e699fbe6da389f06acee6d38fba3f
Image size: 4.9 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:alpha-irx
Shell into the container
singularity shell library://cigale/cigale:alpha-irx
Run the container
singularity run library://cigale/cigale:alpha-irx
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:alpha-irx
Shell into the container
apptainer shell library://cigale/cigale:alpha-irx
Run the container
apptainer run library://cigale/cigale:alpha-irx
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
%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 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 .
cd /opt
pcigale-filters add "MIGHTEE_L.dat"
pcigale-filters add "VLA_S.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_alpha-irx.def
#!/bin/sh
python "$@"
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow
export LC_ALL=C