Image size: 1.7 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://casa/casa-stable:v6.5.5-21-py3.6

Shell into the container

singularity shell library://casa/casa-stable:v6.5.5-21-py3.6

Run the container

singularity run library://casa/casa-stable:v6.5.5-21-py3.6

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://casa/casa-stable:v6.5.5-21-py3.6

Shell into the container

apptainer shell library://casa/casa-stable:v6.5.5-21-py3.6

Run the container

apptainer run library://casa/casa-stable:v6.5.5-21-py3.6
BootStrap: yum
OSVersion: 7
MirrorURL: http://mirror.centos.org/centos-%{OSVERSION}/%{OSVERSION}/os/$basearch/
Include: yum

# If you want the updates (available at the bootstrap date) to be installed
# inside the container during the bootstrap instead of the General Availability
# point release (7.x) then uncomment the following line
UpdateURL: http://mirror.centos.org/centos-%{OSVERSION}/%{OSVERSION}/updates/$basearch/

%environment
	export LC_ALL=C
	export PATH=/opt/casa-6.5.5-21-py3.6/bin/:$PATH

%post
	# Fix "One of the configured repositories failed (Unknown)" error
	mkdir -p /etc/yum/vars
	echo 7 > /etc/yum/vars/releasever

	yum -y install centos-release-scl
	yum -y install wget vim svn git gcc cmake python libXrandr-dev* libXcursor-dev* libXinerama-dev* libfontconfig-dev* libfontconfig fontconfig-dev libXft* libGL* libGL-dev* fontconfig-dev* libSM-dev* libX11-dev* libXext-dev* libXi-dev* libXrender-dev*
	yum -y install xorg-x11-server-Xvfb* ghostscript* curl*
	mkdir -p /opt 
	cd /opt
    wget -O- https://casa.nrao.edu/download/distro/casa/release/rhel/casa-6.5.5-21-py3.6.tar.xz | tar -Jxvf -
Download casa-casa-stable_v6.5.5-21-py3.6.def
#!/bin/sh
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow


	export LC_ALL=C
	export PATH=/opt/casa-6.5.5-21-py3.6/bin/:$PATH