calibration/gipsy64:py3-2022-03-18
Version sha256.7f73a2e233c3db37d5e8db02e600122cb2146ecc55689c31bbb798793c470324
Image size: 914.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/gipsy64:py3-2022-03-18
Shell into the container
singularity shell library://calibration/gipsy64:py3-2022-03-18
Run the container
singularity run library://calibration/gipsy64:py3-2022-03-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://calibration/gipsy64:py3-2022-03-18
Shell into the container
apptainer shell library://calibration/gipsy64:py3-2022-03-18
Run the container
apptainer run library://calibration/gipsy64:py3-2022-03-18
BootStrap: docker
From: ubuntu:20.04
%labels
APPLICATION_NAME Ubuntu LTS + Gipsy
OS_VERSION 20.04
APPLICATION_URL https://www.astro.rug.nl/~gipsy/installation/installation.html
SYSTEM_NAME iLifu
SYSTEM_SINGULARITY_VERSION 3.5.2
SYSTEM_URL http://www.ilifu.ac.za
AUTHOR_NAME IDIA
AUTHOR_EMAIL support@ilifu.ac.za
%environment
export gip_root=/opt/gipsy
export gip_dat=$gip_root/dat
export gip_doc=$gip_root/doc
export gip_exe=$gip_root/exe/linux64
export gip_htm=$gip_root/htm
export gip_inc=$gip_root/inc
export gip_loc=$gip_root/loc
export gip_mis=$gip_root/mis
export gip_old=$gip_root/old
export gip_sub=$gip_root/sub
export gip_sys=$gip_root/sys
export gip_tsk=$gip_root/tsk
export gip_tmp=$gip_root/tmp/linux64
export gip_lib=$gip_root/lib/linux64
export gip_arch=linux64
export gip_host=Generic
export gip_mode=71
%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/gipsy
export DEBIAN_FRONTEND=noninteractive
export gip_root=/opt/gipsy
export gip_dat=$gip_root/dat
export gip_doc=$gip_root/doc
export gip_exe=$gip_root/exe/linux64
export gip_htm=$gip_root/htm
export gip_inc=$gip_root/inc
export gip_loc=$gip_root/loc
export gip_mis=$gip_root/mis
export gip_old=$gip_root/old
export gip_sub=$gip_root/sub
export gip_sys=$gip_root/sys
export gip_tsk=$gip_root/tsk
export gip_tmp=$gip_root/tmp/linux64
export gip_lib=$gip_root/lib/linux64
export gip_arch=linux64
export gip_host=Generic
export gip_mode=71
# Installation of initial packages
apt-get update -y
apt-get install -y gcc wget vim apt-utils git build-essential bzip2 libpython3-dev python3-pip libpng-dev gfortran xvfb ghostscript curl pkg-config libxi-dev libfuse-dev python-is-python3 tcsh libxt-dev libncurses-dev xaw3dg xaw3dg-dev libxaw7-dev python3-qtpy pgplot5
python -m pip install matplotlib numpy astropy scipy vtk
python -m pip install https://www.astro.rug.nl/software/kapteyn/kapteyn-3.0.tar.gz
# install gipsy
cd /opt
wget https://ftp.astro.rug.nl:9090/gipsy/gipsy64/src/gipsy64python3_src.tar.gz
tar -xvzf gipsy64python3_src.tar.gz -C $gip_root
rm gipsy64python3_src.tar.gz
cd $gip_root/sys
./mkclient.csh 71
mv clients.new $gip_root/loc/clients
csh cshrc.csh
# more $gip_root/sys/gipenv.csh
cd $gip_root/loc
cp $gip_root/sys/setup.mgr setup
chown -R root:root $gip_root
cd $gip_root/sys
./install.csh
./mkbookkeeper.csh
mv bookkeeper.new bookkeeper
sed -i '340,342{s/^/#/}' /opt/gipsy/sys/install.csh
sed -i '194,196{s/^/#/}' /opt/gipsy/sys/gipsy.csh
${gip_exe}/compile -update > p.log
rm -f $gip_sys/.*lock $gip_sys/*.lock $gip_tmp/update.lock
#more p.log
# Cleanup the container
apt-get clean
apt-get autoclean
%runscript
# checks for compilation errors
alias check=${gip_sys}/check.csh
# starts default GIPSY
alias gipsy=${gip_sys}/gipsy.csh
# does compilations
alias p=${gip_exe}/compile
# packs files
alias pack=${gip_sys}/pack.csh
# sheltran compiler
alias s77=${gip_exe}/sheltran
# starts X GIPSY (currently does not work - no file)
alias xgipsy=${gip_sys}/xgipsy.csh
# set env. for N HERMES
alias ngipsy=${gip_sys}/ngipsy.csh
# starts N HERMES
alias nhermes=${gip_exe}/nhermes
# command-line invokable tasks
alias skycalc=${gip_exe}/skycalc
alias skycalq=${gip_exe}/skycalq
alias visions=${gip_exe}/visions
eval ${@}
%help
Use "singularity run /path/to/container <command>" to execute GIPSY tasks using aliases.
The following aliases are available:
check - checks for compilation errors
gipsy - starts default GIPSY
p - does compilations
pack - packs files
s77 - sheltran compiler
ngipsy - sets env for N HERMES
nhermes - starts N HERMES
skycalc - command-line invokable task (requires x11)
skycalq - command-line invokable task (requires x11)
visions - command-line invokable task (requires x11)
Download calibration-gipsy64_py3-2022-03-18.def