Image size: 2.5 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://calibration/ddfacet:v0.7.2

Shell into the container

singularity shell library://calibration/ddfacet:v0.7.2

Run the container

singularity run library://calibration/ddfacet:v0.7.2

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/ddfacet:v0.7.2

Shell into the container

apptainer shell library://calibration/ddfacet:v0.7.2

Run the container

apptainer run library://calibration/ddfacet:v0.7.2
bootstrap: docker
from: bhugo/ddfacet:0.7.2
Download calibration-ddfacet_v0.7.2.def
#!/bin/sh
OCI_ENTRYPOINT='"DDF.py"'
OCI_CMD='"--help"'
CMDLINE_ARGS=""
# prepare command line arguments for evaluation
for arg in "$@"; do
    CMDLINE_ARGS="${CMDLINE_ARGS} \"$arg\""
done

# ENTRYPOINT only - run entrypoint plus args
if [ -z "$OCI_CMD" ] && [ -n "$OCI_ENTRYPOINT" ]; then
    if [ $# -gt 0 ]; then
        SINGULARITY_OCI_RUN="${OCI_ENTRYPOINT} ${CMDLINE_ARGS}"
    else
        SINGULARITY_OCI_RUN="${OCI_ENTRYPOINT}"
    fi
fi

# CMD only - run CMD or override with args
if [ -n "$OCI_CMD" ] && [ -z "$OCI_ENTRYPOINT" ]; then
    if [ $# -gt 0 ]; then
        SINGULARITY_OCI_RUN="${CMDLINE_ARGS}"
    else
        SINGULARITY_OCI_RUN="${OCI_CMD}"
    fi
fi

# ENTRYPOINT and CMD - run ENTRYPOINT with CMD as default args
# override with user provided args
if [ $# -gt 0 ]; then
    SINGULARITY_OCI_RUN="${OCI_ENTRYPOINT} ${CMDLINE_ARGS}"
else
    SINGULARITY_OCI_RUN="${OCI_ENTRYPOINT} ${OCI_CMD}"
fi

# Evaluate shell expressions first and set arguments accordingly,
# then execute final command as first container process
eval "set ${SINGULARITY_OCI_RUN}"
exec "$@"
# /.singularity.d/env/10-docker2singularity.sh
#!/bin/sh
export PATH="/opt/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
export DDFACET_TEST_DATA_DIR="${DDFACET_TEST_DATA_DIR:-"/test_data"}"
export DDFACET_TEST_OUTPUT_DIR="${DDFACET_TEST_OUTPUT_DIR:-"/test_output"}"
export DEBIAN_FRONTEND="${DEBIAN_FRONTEND:-"noninteractive"}"
export DEBIAN_PRIORITY="${DEBIAN_PRIORITY:-"critical"}"
export GNUCOMPILER="${GNUCOMPILER:-"10"}"
export PYTHONVER="${PYTHONVER:-"3.8"}"
export DEB_SETUP_DEPENDENCIES="${DEB_SETUP_DEPENDENCIES:-"dpkg-dev     g++-10     gcc-10     libc-dev     cmake     gfortran-10     git     wget     subversion     rsync"}"
export DEB_DEPENCENDIES="${DEB_DEPENCENDIES:-"python3-virtualenv     python3-pip     libfftw3-dev     python3-numpy     libfreetype6     libfreetype6-dev     libpng-dev     pkg-config     python3-dev     libboost-all-dev     libcfitsio-dev     libhdf5-dev     wcslib-dev     libatlas-base-dev     liblapack-dev     python3-tk     libreadline6-dev     subversion     liblog4cplus-dev     libhdf5-dev     libncurses5-dev     flex     bison     libbison-dev     libqdbm-dev     make"}"
export NUMPYVER="${NUMPYVER:-"1.19.5"}"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:-"/opt/venv/lib:"}"
export PYTHONPATH="${PYTHONPATH:-"/opt/venv/lib/python3.8/site-packages"}"