casa/casa-vlbi-rpicard:2025-04-01
Version sha256.2c04a92d019218e8b192203bb6181c2922d02d46dcf294acdc45136cc7805497
Image size: 1.4 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-vlbi-rpicard:2025-04-01
Shell into the container
singularity shell library://casa/casa-vlbi-rpicard:2025-04-01
Run the container
singularity run library://casa/casa-vlbi-rpicard:2025-04-01
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-vlbi-rpicard:2025-04-01
Shell into the container
apptainer shell library://casa/casa-vlbi-rpicard:2025-04-01
Run the container
apptainer run library://casa/casa-vlbi-rpicard:2025-04-01
Bootstrap: docker
From: mjanssen2308/casavlbi:latest
%post
# Ensure the applications are in PATH
echo 'export PATH="/usr/local/src/picard/picard:/usr/local/src/jiveplot:$PATH"' >> $SINGULARITY_ENVIRONMENT
# Update the mpi_host_file
MPI_HOST_FILE="/usr/local/src/picard/picard/input/mpi_host_file"
if [ -f "$MPI_HOST_FILE" ]; then
# Comment out all non-commented lines
sed -i 's/^[^#]/#&/' "$MPI_HOST_FILE"
# Append missing newline to file
echo "" >> "$MPI_HOST_FILE"
# Add +n0 at the end of the file
echo "+n0" >> "$MPI_HOST_FILE"
echo "Updated mpi_host_file: commented out all active lines and added +n0"
else
echo "Warning: mpi_host_file not found at $MPI_HOST_FILE"
fi
# Verify that the directories exist
if [ ! -d "/usr/local/src/picard/picard" ] || [ ! -d "/usr/local/src/jiveplot" ]; then
echo "Warning: One or more application directories not found. PATH may be incorrect."
fi
%runscript
echo "Container was created with paths properly set"
echo "Current PATH: $PATH"
exec "$@"
Download casa-casa-vlbi-rpicard_2025-04-01.def
#!/bin/sh
echo "Container was created with paths properly set"
echo "Current PATH: $PATH"
exec "$@"
# /.singularity.d/env/10-docker2singularity.sh
#!/bin/sh
export PATH="/usr/local/src/picard/picard:/usr/local/src/jiveplot:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
export LANG="${LANG:-"en_US.UTF-8"}"
export PYTHONPATH="${PYTHONPATH:-"/usr/local/src/picard/picard:"}"
# /.singularity.d/env/91-environment.sh
export PATH="/usr/local/src/picard/picard:/usr/local/src/jiveplot:$PATH"