barolo/barolo:v1.6.4
Version sha256.bbc028bad9f80623c1cb5e6621f23a2c6c022bed04446819e31134ca0032a5e4
Image size: 419.0 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://barolo/barolo:v1.6.4
Shell into the container
singularity shell library://barolo/barolo:v1.6.4
Run the container
singularity run library://barolo/barolo:v1.6.4
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://barolo/barolo:v1.6.4
Shell into the container
apptainer shell library://barolo/barolo:v1.6.4
Run the container
apptainer run library://barolo/barolo:v1.6.4
Bootstrap: debootstrap
MirrorURL: http://archive.ubuntu.com/ubuntu/
OSVersion: bionic
Include: software-properties-common
%labels
APPLICATION_NAME_BASE Ubuntu LTS + BBarolo
OS_VERSION 18.04
SYSTEM_NAME iLifu
SYSTEM_SINGULARITY_VERSION 2.6
SYSTEM_URL http://www.ilifu.ac.za
AUTHOR_NAME Jeremy Smith
AUTHOR_EMAIL jeremy@idia.ac.za
%environment
export PATH="$PATH:/opt/Bbarolo"
%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.
mkdir -p /opt
export INSTALLER_PATH=/opt
# Fix command prompt in Singularity 3.5.2
printf 'export PS1="\u@$SINGULARITY_NAME:\w$ "' > /.singularity.d/env/999-psvars.sh
###############################################################################
# Installation of the utility packages and repositories
apt-get update -y
apt-get install -y wget vim apt-utils git bzip2 build-essential cmake
# Install package requirements
apt-add-repository universe
apt-get update -y
apt-get install -y libfftw3-dev wcslib-dev libcfitsio-dev gnuplot python3-pip qt5-default
pip3 install --upgrade pip
pip3 install astropy scipy pandas matplotlib pyBBarolo
# Install BBarolo https://github.com/editeodoro/Bbarolo
cd /usr/bin
ln -s python3 python
cd $INSTALLER_PATH
git clone -b master --single-branch https://github.com/editeodoro/Bbarolo
cd Bbarolo
./configure
make
make install
make gui
make pybbinst
# Clean Up
apt-get clean
apt-get autoclean
apt-get autoremove -y
rm -rf "/.cache" "/root/.cache"
Download barolo-barolo_v1.6.4.def
#!/bin/sh
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow
export PATH="$PATH:/opt/Bbarolo"