Image size: 362.9 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://simulation/am:v12.2.0

Shell into the container

singularity shell library://simulation/am:v12.2.0

Run the container

singularity run library://simulation/am:v12.2.0

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://simulation/am:v12.2.0

Shell into the container

apptainer shell library://simulation/am:v12.2.0

Run the container

apptainer run library://simulation/am:v12.2.0
An Ubuntu 20.04 container with am 12.2.

Run am:
$ am --help
Usage: am [option] FILE [param1 param2...]

FILE = model configuration file.  Use "stdin" or "-" for the file name
to take input from the console or from a pipe.
[param1 param2...] = optional list of parameters.  All instances of
\%1 in FILE will be replaced by param1, %2 with param2, etc.

Options:
-a  --atmosphere   Atmospheric model only, no radiative transfer.
-b  --benchmark    Time execution of FILE, without writing output.
-e  --environment  Display environment information.
-h  --help         Display this help message.
-l  --legal        Display terms of use.
-r  --references   Display a list of references.
-v  --version      Display version and build information.

For updates, documentation, and citation information, see

https://doi.org/10.5281/zenodo.640645
Bootstrap: debootstrap
MirrorURL: http://archive.ubuntu.com/ubuntu/
OSVersion: focal

%help

        An Ubuntu 20.04 container with am 12.2.

        Run am:
        $ am --help
        Usage: am [option] FILE [param1 param2...]

        FILE = model configuration file.  Use "stdin" or "-" for the file name
        to take input from the console or from a pipe.
        [param1 param2...] = optional list of parameters.  All instances of
        \%1 in FILE will be replaced by param1, %2 with param2, etc.

        Options:
        -a  --atmosphere   Atmospheric model only, no radiative transfer.
        -b  --benchmark    Time execution of FILE, without writing output.
        -e  --environment  Display environment information.
        -h  --help         Display this help message.
        -l  --legal        Display terms of use.
        -r  --references   Display a list of references.
        -v  --version      Display version and build information.

        For updates, documentation, and citation information, see

        https://doi.org/10.5281/zenodo.640645


%labels
        APPLICATION_NAME Ubuntu LTS + am
        OS_VERSION 20.04
        APPLICATION_URL https://lweb.cfa.harvard.edu/~spaine/am/

        SYSTEM_NAME iLifu
        SYSTEM_SINGULARITY_VERSION 3.9.1
        SYSTEM_URL http://www.ilifu.ac.za

        AUTHOR_NAME IDIA
        AUTHOR_EMAIL support@ilifu.ac.za

%environment

%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
        export DEBIAN_FRONTEND=noninteractive
        apt-get install -y software-properties-common
        apt-add-repository -y universe
        apt-get update -y
        apt-get install -y wget vim apt-utils git build-essential bzip2 curl pkg-config make cmake

        # Install am dependencies
        apt-get install -y libopenmpi-dev

        # Install am
        wget -O- https://zenodo.org/record/6774378/files/am-12.2.tgz | tar zxv -C /opt
        mv /opt/am-12.2 /opt/am
        cd /opt/am/src
        make am
        make install

        # Fix command prompt in Singularity 3.5.2
        printf 'export PS1="\u@$SINGULARITY_NAME:\w$ "' > /.singularity.d/env/999-psvars.sh

        # Cleanup the container
        apt-get clean
        apt-get autoclean
Download simulation-am_v12.2.0.def
#!/bin/sh