Directory structure

There are five directories involved in a SUPS deployment: the common directory, the download directory, the image directory, the log directory, and the source directory.

The locations of these directories are expressed by the following shell variables:

Variable

Description

COMMON_TOP_DIR

The parent of the common directory.

DOWNLOAD_TOP_DIR

The parent of the download directory.

IMAGE_TOP_DIR

The parent of the image directory.

LOG_TOP_DIR

The parent of the log directory.

SOURCE_TOP_DIR

The parent of the source directory.

Each directory is fully relocatable. You can put these directories side-by-side in the same top directory, or you can put each directory on a separate file system. Setting all five variables to the same location will place all five directories side-by-side in the same top directory.

Common directory

$COMMON_TOP_DIR
 \_ common
     \_ 1.0
     \_ 1.0.0
     \_ 1.0.1
     \_ 1.0.2
     \_ 1.1
     \_ 1.1.0
     \_ 1.1.1
     \_ 1.1.2
     \_ ...

The common directory houses RPM repositories that are used while building SUPS containers. A SUPS container build typically uses these RPM repositories as follows:

  1. During the container build, the common directory is bind mounted in the container.

  2. The container build script configures the package manager to use specific RPM repositories from the mounted common directory.

  3. The container build script uses the package manager to install RPMs from the configured RPM repositories.

The common directory is used while building the SUPS reference containers. It is also used while building application containers.

The common directory only needs to be mounted in a container at build time. After a container is built, the common directory does not need to be mounted when running the container.

Directories with partial versions (e.g. 1.0 and 1.1 in the example above) house RPM repositories that are shared by multiple versions of SUPS. The sharing saves disk space compared to having separate copies of these RPM repositories for each version of SUPS.

Directories with full versions (e.g. 1.0.0 and 1.0.1 in the example above) house RPM repositories that are specific to a single version of SUPS.

Download directory

$DOWNLOAD_TOP_DIR
 \_ download

The download directory houses manually downloaded files. Whenever possible, SUPS downloads files from the Internet automatically. However, some files require login credentials and end user license agreements. SUPS cannot download these files automatically, so you must download them manually.

The SUPS build process uses files from the download directory to populate RPM repositories in the common directory. You can delete the download directory after the common directory is populated, or you can keep it for future reference.

All versions of SUPS can share a single download directory. You can have separate download directories for different versions of SUPS by using a different DOWNLOAD_TOP_DIR for each version of SUPS, but this is not necessary in general.

Image directory

$IMAGE_TOP_DIR
 \_ image
     \_ 1.0.0
     \_ 1.0.1
     \_ 1.0.2
     \_ 1.1.0
     \_ 1.1.1
     \_ 1.1.2
     \_ ...

The image directory houses pre-built SUPS reference containers. The pre-built containers provide a convenient starting point for users to build applications and create derivative containers.

The SUPS build process populates the image directory.

Each version of SUPS has its own subdirectory under the image directory.

Log directory

$LOG_TOP_DIR
 \_ log
     \_ 1.0.0
     \_ 1.0.1
     \_ 1.0.2
     \_ 1.1.0
     \_ 1.1.1
     \_ 1.1.2
     \_ ...

The log directory houses build logs produced by the SUPS build process. Each version of SUPS has its own subdirectory under the log directory, and within that subdirectory there is a subdirectory for each ${VENDOR}-${DISTRO}-${CONTAINER_ENGINE} build, and within those subdirectories there is one log file per package built.

Source directory

$SOURCE_TOP_DIR
 \_ source
     \_ 1.0.0
     \_ 1.0.1
     \_ 1.0.2
     \_ 1.1.0
     \_ 1.1.1
     \_ 1.1.2
     \_ ...

The source directory houses SUPS source files. The source directory contains all documentation, container definition files, and scripts that ship with SUPS. The source directory is populated when you unpack SUPS source files from an RPM or tarball.

The SUPS build process uses the scripts in the source directory. The documentation and examples in the source directory are useful for anyone who builds SUPS containers or uses SUPS containers to build and debug applications. The source directory also houses the hpc-container-wrapper script, which is used to launch containerized applications on compute nodes.

Therefore, the source directory must be present for all of the following activities:

  • Running the SUPS build process.

  • Populating the common directory.

  • Populating the image directory.

  • Reading administrator documentation.

  • Reading user documentation.

  • Using SUPS container defintion files as examples.

  • Running containerized applications on compute nodes.