Image size: 340.4 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://ubuntu/noble:0.3

Shell into the container

singularity shell library://ubuntu/noble:0.3

Run the container

singularity run library://ubuntu/noble:0.3

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://ubuntu/noble:0.3

Shell into the container

apptainer shell library://ubuntu/noble:0.3

Run the container

apptainer run library://ubuntu/noble:0.3
Base Ubuntu noble image, library://ci-bot/ubuntu/noble:0.3, to use as a basis for more specific containers.
Bootstrap: debootstrap
MirrorURL: http://us.archive.ubuntu.com/ubuntu/
OSVersion: noble

%labels
  Maintainer Dane Kennedy
  Version 0.3

%help
  Base Ubuntu noble image, library://ci-bot/ubuntu/noble:0.3, to use as a basis for more specific containers.

%environment
  export INSTALLER_PATH=/installer
  export SOFTWARE_PATH=/software
  export PATH=${SOFTWARE_PATH}/bin:${PATH}
  export LC_ALL=C
  unset XDG_RUNTIME_DIR

%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 /software /installer
  export INSTALLER_PATH=/installer
  export SOFTWARE_PATH=/software
  export DEBIAN_FRONTEND=noninteractive
  # Update apt
  apt-get update -y && apt-get dist-upgrade -y

  apt-get install software-properties-common -y

  # Add repositories
  apt-add-repository universe
  apt-add-repository restricted
  apt-get update

  # Install common stuff
  apt-get install -y \
    emacs \
    lftp \
    locales \
    nano \
    python-is-python3 \
    screen \
    tcsh \
    tmux \
    tzdata \
    zsh \

  # Configure locale
  echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
  echo "en_ZA.UTF-8 UTF-8" >> /etc/locale.gen
  locale-gen en_US.utf8 en_ZA.utf8
  /usr/sbin/update-locale LANG=en_ZA.UTF-8
  export LC_ALL=en_ZA.UTF-8
  export LANG=en_ZA.UTF-8

  # Configure timezone
    echo "Africa/Johannesburg" > /etc/timezone
    dpkg-reconfigure --frontend noninteractive tzdata

  # Create /users to bind home directories into the container.
  mkdir -p \
    /carta_share \
    /cbio \
    /cchem \
    /data \
    /idia \
    /ilifu \
    /scratch3 \
    /software \
    /users \

  # Cleanup the container
  apt-get clean
  apt-get autoclean

%test
  grep -q "24.04" /etc/issue
  
Download ubuntu-noble_0.3.def
#!/bin/sh
#!/bin/sh

  grep -q "24.04" /etc/issue
  
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow


  export INSTALLER_PATH=/installer
  export SOFTWARE_PATH=/software
  export PATH=${SOFTWARE_PATH}/bin:${PATH}
  export LC_ALL=C
  unset XDG_RUNTIME_DIR