lxm3.xm_cluster.SingularityContainer

class lxm3.xm_cluster.SingularityContainer(entrypoint: UniversalPackage | PythonPackage | PexBinary, image_path: str)

An executable that can be executed in a Singularity container.

entrypoint

Another ExcutableSpec.

Type:

lxm3.xm_cluster.executable_specs.UniversalPackage | lxm3.xm_cluster.executable_specs.PythonPackage | lxm3.xm_cluster.executable_specs.PexBinary

image_path

Path to a Singularity/Apptainer image. The following image URLs are supported:

  1. path to a local SIF image. e.g., path/to/image.sif

    Note: If it’s a relative path, this will be resolved relative to the launcher’s working directory.

  2. image URI to a container image stored in the local docker daemon. e.g., docker-daemon://python:3.10

    The image will be converted and cached as a singularity SIF image.

  3. Any other URIs supported by Singularity/Apptainer. e.g., docker://python:3.10. The image URI will be passed to singularity as is.

Type:

str

__init__(entrypoint: UniversalPackage | PythonPackage | PexBinary, image_path: str) None

Method generated by attrs for class SingularityContainer.

Methods

__init__(entrypoint, image_path)

Method generated by attrs for class SingularityContainer.

Attributes

name

entrypoint

image_path