heasoft/heasoft:v6.32.0
Version sha256.b96d32173ee9a8dffb4f45deb5afaf58c5afdf9483cc81c092a8f8bbb75c8ca7
Image size: 4.3 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://heasoft/heasoft:v6.32.0
Shell into the container
singularity shell library://heasoft/heasoft:v6.32.0
Run the container
singularity run library://heasoft/heasoft:v6.32.0
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://heasoft/heasoft:v6.32.0
Shell into the container
apptainer shell library://heasoft/heasoft:v6.32.0
Run the container
apptainer run library://heasoft/heasoft:v6.32.0
Bootstrap: debootstrap
MirrorURL: http://archive.ubuntu.com/ubuntu/
OSVersion: focal
%labels
APPLICATION_NAME Ubuntu LTS + HEASOFT 6.32
OS_VERSION 20.04
APPLICATION_URL https://heasarc.gsfc.nasa.gov/docs/software/heasoft/download.html
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
%environment
export LD_LIBRARY_PATH=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib:$LD_LIBRARY_PATH
export PATH=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/bin:$PATH
export HEADAS=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31
export EXT=lnx
export FTOOLS=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31
export FTOOLSINPUT=stdin
export FTOOLSOUTPUT=stdout
export LHEA_DATA=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/refdata
export LHEA_HELP=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/help
export LHEAPERL=/bin/perl
export LHEASOFT=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31
export LYNX_CFG=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib
export PERL5LIB=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/perl
export PERLLIB=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/perl
export PFCLOBBER=1
export PFILES=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/syspfiles
export PGPLOT_RGB=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/rgb.txt
export PGPLOT_DIR=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib
export PGPLOT_FONT=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/grfont.dat
export POW_LIBRARY=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/pow
export PYTHONPATH=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/python:/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib
export TCLRL_LIBDIR=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib
export XANADU=/opt/heasoft-6.32
export XANBIN=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31
export XRDEFAULTS=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/xrdefaults
export XSPEC_INC_PATH=/opt/heasoft-6.32/Xspec/x86_64-pc-linux-gnu-libc2.31/include
%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 install -y software-properties-common
apt-add-repository -y universe
apt-get update -y
apt-get install -y wget vim apt-utils git build-essential bzip2 curl pkg-config make gcc g++ gfortran
# Install HEASOFT
apt-get install -y perl-modules libncurses5-dev libreadline-dev ncurses-dev libcurl4 libcurl4-gnutls-dev xorg-dev python3-dev python3-pip python-is-python3
python3 -m pip install setuptools
python3 -m pip install astropy numpy scipy matplotlib
cd /opt
wget https://heasarc.gsfc.nasa.gov/FTP/software/lheasoft/lheasoft6.32/heasoft-6.32src.tar.gz
tar xzf heasoft-6.32src.tar.gz
cd heasoft-6.32/BUILD_DIR/
./configure > config.txt 2>&1
make > build.log 2>&1
make install > install.log 2>&1
# Install additional astronomy Python packages, set env variables for astromodels
export LD_LIBRARY_PATH=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib:$LD_LIBRARY_PATH
export PATH=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/bin:$PATH
export HEADAS=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31
export EXT=lnx
export FTOOLS=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31
export FTOOLSINPUT=stdin
export FTOOLSOUTPUT=stdout
export LHEA_DATA=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/refdata
export LHEA_HELP=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/help
export LHEAPERL=/bin/perl
export LHEASOFT=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31
export LYNX_CFG=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib
export PERL5LIB=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/perl
export PERLLIB=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/perl
export PFCLOBBER=1
export PFILES=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/syspfiles
export PGPLOT_RGB=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/rgb.txt
export PGPLOT_DIR=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib
export PGPLOT_FONT=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/grfont.dat
export POW_LIBRARY=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/pow
export PYTHONPATH=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/python:/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib
export TCLRL_LIBDIR=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib
export XANADU=/opt/heasoft-6.32
export XANBIN=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31
export XRDEFAULTS=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/xrdefaults
export XSPEC_INC_PATH=/opt/heasoft-6.32/Xspec/x86_64-pc-linux-gnu-libc2.31/include
python3 -m pip install matplotlib pandas emcee corner lmfit extinction astromodels threeml
# Fix command prompt in Singularity 3.5.2
printf 'export PS1="\u@$SINGULARITY_NAME:\w$ "' > /.singularity.d/env/999-psvars.sh
# Cleanup the container
rm /opt/heasoft-6.32src.tar.gz
apt-get clean
apt-get autoclean
Download heasoft-heasoft_v6.32.0.def
#!/bin/sh
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow
export LD_LIBRARY_PATH=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib:$LD_LIBRARY_PATH
export PATH=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/bin:$PATH
export HEADAS=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31
export EXT=lnx
export FTOOLS=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31
export FTOOLSINPUT=stdi
export FTOOLSOUTPUT=stdout
export LHEA_DATA=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/refdata
export LHEA_HELP=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/help
export LHEAPERL=/bin/perl
export LHEASOFT=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31
export LYNX_CFG=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib
export PERL5LIB=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/perl
export PERLLIB=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/perl
export PFCLOBBER=1
export PFILES=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/syspfiles
export PGPLOT_RGB=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/rgb.txt
export PGPLOT_DIR=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib
export PGPLOT_FONT=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/grfont.dat
export POW_LIBRARY=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/pow
export PYTHONPATH=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib/python:/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib
export TCLRL_LIBDIR=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/lib
export XANADU=/opt/heasoft-6.32
export XANBIN=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31
export XRDEFAULTS=/opt/heasoft-6.32/x86_64-pc-linux-gnu-libc2.31/xrdefaults
export XSPEC_INC_PATH=/opt/heasoft-6.32/Xspec/x86_64-pc-linux-gnu-libc2.31/include