gravitational-lensing/pyautolens:2024-04-05
Version sha256.cedd46e414f3846e450df523d2b849db5a73a663a321cc85b7dd3604b711329d
Image size: 1.1 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://gravitational-lensing/pyautolens:2024-04-05
Shell into the container
singularity shell library://gravitational-lensing/pyautolens:2024-04-05
Run the container
singularity run library://gravitational-lensing/pyautolens:2024-04-05
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://gravitational-lensing/pyautolens:2024-04-05
Shell into the container
apptainer shell library://gravitational-lensing/pyautolens:2024-04-05
Run the container
apptainer run library://gravitational-lensing/pyautolens:2024-04-05
This container includes Python installs of PyAutoLens, PyAutoFit, PyAutoArray, PyAutoGalaxy with photutils and shapely. This container can be used as a kernel in Jupyer.
Bootstrap: debootstrap
MirrorURL: http://archive.ubuntu.com/ubuntu/
OSVersion: jammy
%labels
APPLICATION_NAME Ubuntu LTS + PyAutoLens
OS_VERSION 22.04
APPLICATION_URL https://pyautolens.readthedocs.io/en/latest/installation/source.html
SYSTEM_NAME ilifu
SYSTEM_SINGULARITY_VERSION 3.9
SYSTEM_URL http://www.ilifu.ac.za
AUTHOR_NAME IDIA
AUTHOR_EMAIL support@ilifu.ac.za
%help
This container includes Python installs of PyAutoLens, PyAutoFit, PyAutoArray, PyAutoGalaxy with photutils and shapely. This container can be used as a kernel in Jupyer.
%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 PyAutoX
python -m pip install -U pip autoconf
cd /opt
git clone https://github.com/rhayes777/PyAutoFit.git
python -m pip install -r PyAutoFit/requirements.txt
cd PyAutoFit
python -m pip install --no-deps .
cd /opt
git clone https://github.com/Jammy2211/PyAutoArray.git
python -m pip install -r PyAutoArray/requirements.txt
cd PyAutoArray
python -m pip install --no-deps .
cd /opt
git clone https://github.com/Jammy2211/PyAutoGalaxy.git
python -m pip install -r PyAutoGalaxy/requirements.txt
cd PyAutoGalaxy
python -m pip install --no-deps .
cd /opt
git clone https://github.com/Jammy2211/PyAutoLens
python -m pip install -r PyAutoLens/requirements.txt
cd PyAutoLens
python -m pip install --no-deps .
python -m pip install numba
# Install additional useful packages
python -m pip install photutils shapely
# 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 gravitational-lensing-pyautolens_2024-04-05.def
#!/bin/sh
python "$@"
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow
export LC_ALL=C