cigale/cigale:v2022.1
Version sha256.136d4c102addf686f886f9d78a23cb3157f6fd015096103124523bf4491989f2
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
Shell into the container
singularity shell library://cigale/cigale:v2022.1
Run the container
singularity run library://cigale/cigale:v2022.1
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
Shell into the container
apptainer shell library://cigale/cigale:v2022.1
Run the container
apptainer run library://cigale/cigale:v2022.1
This container include CIGALE (http://cigale.lam.fr), 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 include CIGALE (http://cigale.lam.fr), 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
# Install CIGALE (http://cigale.lam.fr)
python -m pip install astropy numpy scipy matplotlib configobj rich
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
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_v2022.1.def
#!/bin/sh
python "$@"
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow
export LC_ALL=C