python/astro-py310:2024-10-18
Version sha256.de3a109c756a1a1f6ae96f02bfd628bad6021d3f7e5a6c0e6a3fe743353da8f0
Image size: 20.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://python/astro-py310:2024-10-18
Shell into the container
singularity shell library://python/astro-py310:2024-10-18
Run the container
singularity run library://python/astro-py310:2024-10-18
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://python/astro-py310:2024-10-18
Shell into the container
apptainer shell library://python/astro-py310:2024-10-18
Run the container
apptainer run library://python/astro-py310:2024-10-18
Bootstrap: localimage
From: ASTRO-PY3_5.simg
Include: software-properties-common
%labels
APPLICATION_NAME_FUSION MCVCM + PUMA
%environment
export PUMA_DIR=$INSTALLER_PATH/PUMA
export PATH=$PUMA_DIR/scripts:$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.
export INSTALLER_PATH=/opt
export SHELL=/bin/bash
export DEBIAN_FRONTEND=noninteractive
###############################################################################
#Install dependency for MCVCM
apt-get install -y python-tk x11vnc xvfb blackbox montage
python -m pip install astropy future reproject matplotlib numpy scipy
# Install Multi-Catalogue Visual Cross-Matching
cd $INSTALLER_PATH
git clone https://github.com/kasekun/MCVCM.git
cd MCV*
python setup.py install
#Installation of PUMA
cd $INSTALLER_PATH
git clone https://github.com/JLBLine/PUMA.git
export PUMA_DIR=$INSTALLER_PATH/PUMA
export PATH=$PUMA_DIR/scripts:$PATH
cd $PUMA_DIR/original_cats
tar -vxjf vlssr_names.fits.tar.bz2
tar -vxjf vizier_mwacs.fits.tar.bz2
tar -vxjf vizier_mrc.fits.tar.bz2
tar -vxjf sumss_names.fits.tar.bz2
tar -vxjf vizier_nvss.fits.tar.bz2
chmod a+x $PUMA_DIR/examples/timing.sh
#Update PUMA for python3 use
cd $INSTALLER_PATH/PUMA
git pull
# Install MOCPy https://cds-astro.github.io/
python -m pip install cdshealpix astropy matplotlib lark-parser networkx
python -m pip install mocpy
# install Eazy-py
git clone https://github.com/gbrammer/eazy-py.git
# Environment variable to point to the repo containing filter/template files
export EAZYCODE=${PWD}/eazy-py/eazy-photoz
# Build the python code and install it in your python env
cd eazy-py
python -m pip install . -r requirements.txt
# Install TRaP
python -m pip install tkp
# packages needed for fruitbat
apt-get install -y f2c
python -m pip install fruitbat
#NE2001 to be used with fruitbat
git clone https://github.com/FRBs/ne2001
cd ne2001
python -m pip install .
# apply fix for missing matplotlib fonts
apt-get install -y msttcorefonts -qq
rm ~/.cache/matplotlib -rf
# Cleanup the container
apt-get clean
apt-get autoclean
Download python-astro-py310_2024-10-18.def
#!/bin/sh
/usr/bin/python "$@"
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow
export LC_ALL=C.UTF-8
unset XDG_RUNTIME_DIR
export INSTALLER_PATH=/opt
export PATH=$PATH:$INSTALLER_PATH
export PATH="$INSTALLER_PATH/java:$PATH"
export PATH=$PATH:$INSTALLER_PATH/LFTools/bin
export PATH=$PATH:$INSTALLER_PATH/cds.cdsclient/scripts
export PATH=$PATH:$INSTALLER_PATH/wcstools-3.9.7/bin
export SOFIA_MODULE_PATH="/opt/SoFiA/build/lib.linux-x86_64-2.7"
export SOFIA_PIPELINE_PATH="/opt/SoFiA/sofia_pipeline.py"
export PATH="$PATH:/opt/SoFiA:/opt/SoFiA/gui"
export PATH="$PATH:/opt/SoFiA-2"
export SOFIA2_PATH="/opt/SoFiA-2"
export BLOBCAT_PATH=$INSTALLER_PATH/BLOBCAT
export PATH=$BLOBCAT_PATH:$PATH
export CASARCFILES=/opt/.casarc
export PATH=$INSTALLER_PATH/PINK/bin:$PATH
export PATH=$INSTALLER_PATH/gpzpp/bin:$PATH
export PATH=$PATH:$INSTALLER_PATH/sed3fit_pkg/sed3fit
export PATH=$PATH:$INSTALLER_PATH/galfit/bin
export PATH=$INSTALLER_PATH/ds9:$PATH
export PATH=$INSTALLER_PATH/Montage/bin:$PATH
export PUMA_DIR=$INSTALLER_PATH/PUMA
export PATH=$PUMA_DIR/scripts:$PATH