calibration/rm-csromer.sif:2023-06-19
Version sha256.7cbe33c7f446f16c18463768dfbd493e8c9ff0312f82933db97d912a3bc08e74
Image size: 288.1 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://calibration/rm-csromer.sif:2023-06-19
Shell into the container
singularity shell library://calibration/rm-csromer.sif:2023-06-19
Run the container
singularity run library://calibration/rm-csromer.sif:2023-06-19
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://calibration/rm-csromer.sif:2023-06-19
Shell into the container
apptainer shell library://calibration/rm-csromer.sif:2023-06-19
Run the container
apptainer run library://calibration/rm-csromer.sif:2023-06-19
Miriad is installed from a binary distribution at /usr/local/miriad. Run 'source $MIR/MIRRC.sh' to set environmental variables.
Bootstrap: debootstrap
MirrorURL: http://archive.ubuntu.com/ubuntu/
OSVersion: focal
%labels
APPLICATION_NAME Ubuntu LTS + Miriad
APPLICATION_URL https://www.atnf.csiro.au/computing/software/miriad/INSTALL.html
OS_VERSION 20.04
SYSTEM_NAME ilifu
SYSTEM_SINGULARITY_VERSION 3.9.1
SYSTEM_URL http://www.ilifu.ac.za
AUTHOR_NAME Jeremy Smith
AUTHOR_EMAIL jeremy@idia.ac.za
%environment
export LC_ALL=C
export MIR=/usr/local/miriad
export PATH=$PATH:/usr/local/miriad/linux64/bin
%help
Miriad is installed from a binary distribution at /usr/local/miriad. Run 'source $MIR/MIRRC.sh' to set environmental variables.
%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 MIR=/usr/local/miriad
# Fix command prompt in Singularity 3.5.2
printf 'export PS1="\u@$SINGULARITY_NAME:\w$ "' > /.singularity.d/env/999-psvars.sh
###############################################################################
# Create Installation Directories and export paths. This is needed as part of post.
# %environment scriptlet does not define these paths during %post only after.
apt-get update -y
apt-get install -y software-properties-common wget vim apt-utils git build-essential bzip2
# Install Miriad requirements
apt-add-repository -y universe
apt-get install -y libpng-dev zlib1g-dev libreadline-dev libxaw7-dev libxmu-dev libxext-dev libxt-dev libxpm-dev libsm-dev libice-dev csh
# Install Miriad
cd /usr/local
wget ftp://ftp.atnf.csiro.au/pub/software/miriad/miriad-common.tar.bz2
wget ftp://ftp.atnf.csiro.au/pub/software/miriad/miriad-linux64.tar.bz2
bzcat miriad-common.tar.bz2 | tar xvf -
bzcat miriad-linux64.tar.bz2 | tar xvf -
cd $MIR
sed -e "s,@MIRROOT@,$MIR," scripts/MIRRC.in > MIRRC
sed -e "s,@MIRROOT@,$MIR," scripts/MIRRC.sh.in > MIRRC.sh
chmod 644 MIRRC*
rm /usr/local/miriad-common.tar.bz2
rm /usr/local/miriad-linux64.tar.bz2
# Clean-up
apt-get clean
apt-get autoclean
%runscript
Download calibration-rm-csromer.sif_2023-06-19.def
#!/bin/sh
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow
export LC_ALL=C
export MIR=/usr/local/miriad
export PATH=$PATH:/usr/local/miriad/linux64/bin