crime/crime:v1.3-2024-05-03
Version sha256.c2a484af3bcc04cf0aeb84db5b57a391a948e5d806ed5cba4e479bafbafd1a72
Image size: 315.6 MB
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://crime/crime:v1.3-2024-05-03
Shell into the container
singularity shell library://crime/crime:v1.3-2024-05-03
Run the container
singularity run library://crime/crime:v1.3-2024-05-03
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://crime/crime:v1.3-2024-05-03
Shell into the container
apptainer shell library://crime/crime:v1.3-2024-05-03
Run the container
apptainer run library://crime/crime:v1.3-2024-05-03
An Ubuntu 18.04 container with CRIME. The CRIME software is located at /opt/CRIME.
Bootstrap: debootstrap
MirrorURL: http://archive.ubuntu.com/ubuntu/
OSVersion: bionic
Include: software-properties-common
%help
An Ubuntu 18.04 container with CRIME. The CRIME software is located at /opt/CRIME.
%labels
APPLICATION_NAME Ubuntu LTS + CRIME
OS_VERSION 18.04
APPLICATION_URL https://github.com/damonge/CRIME.git
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 PATH=$PATH:/opt/CRIME
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/libsharp/auto/lib
export PATH=$PATH:/opt/fg_rm
%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
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 cmake
# Install CRIME dependencies
apt-get install -y libopenmpi-dev libgsl-dev libfftw3-dev libfftw3-mpi-dev libchealpix-dev libcfitsio-dev dh-autoreconf
cd /opt
git clone https://github.com/Libsharp/libsharp.git
cd libsharp/
autoreconf -i
CFLAGS="-DMULTIARCH -std=c99 -O3 -ffast-math" ./configure
make
# Install CRIME (https://github.com/damonge/CRIME.git)
#wget -O- http://intensitymapping.physics.ox.ac.uk/Codes/CRIME/crime-1.3.tar.gz | tar zxv -C /opt
cd /opt
git clone https://github.com/damonge/CRIME.git
cd /opt/CRIME
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/libsharp/auto/lib
sed -i -e "s|GSL_INC = -I/home/dmonge/include|GSL_INC = -I/usr/include/gsl|g" /opt/CRIME/Makefile
sed -i -e 's|GSL_LIB = -L/home/dmonge/lib|GSL_LIB = -L/usr/lib/x86_64-linux-gnu|g' /opt/CRIME/Makefile
sed -i -e "s|FFTW_INC =|FFTW_INC = -I/usr/include|g" /opt/CRIME/Makefile
sed -i -e "s|FFTW_LIB =|FFTW_LIB = -L/usr/lib/x86_64-linux-gnu|g" /opt/CRIME/Makefile
sed -i -e "s|LSHT_INC = -I/home/dmonge/Software/libsharp/auto/include|LSHT_INC = -I/opt/libsharp/auto/include|g" /opt/CRIME/Makefile
sed -i -e "s|LSHT_LIB = -L/home/dmonge/Software/libsharp/auto/lib|LSHT_LIB = -L/opt/libsharp/auto/lib|g" /opt/CRIME/Makefile
make
# Install fg_rm
cd /opt
apt-get install -y libitpp-dev
git clone https://github.com/damonge/fg_rm.git
cd fg_rm
sed -i -e "s|GSL_INC = -I/home/damonge/include|GSL_INC = -I/usr/include/gsl|g" /opt/fg_rm/Makefile
sed -i -e 's|GSL_LIB = -L/home/damonge/lib|GSL_LIB = -L/usr/lib/x86_64-linux-gnu|g' /opt/fg_rm/Makefile
sed -i -e "s|FFTW_INC =|FFTW_INC = -I/usr/include|g" /opt/fg_rm/Makefile
sed -i -e "s|FFTW_LIB =|FFTW_LIB = -L/usr/lib/x86_64-linux-gnu|g" /opt/fg_rm/Makefile
sed -i -e "s|LSHT_INC =|LSHT_INC = -I/opt/libsharp/auto/include|g" /opt/fg_rm/Makefile
sed -i -e "s|LSHT_LIB =|LSHT_LIB = -L/opt/libsharp/auto/lib|g" /opt/fg_rm/Makefile
make
# 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
Download crime-crime_v1.3-2024-05-03.def
#!/bin/sh
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow
export PATH=$PATH:/opt/CRIME
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/libsharp/auto/lib
export PATH=$PATH:/opt/fg_rm