Skip to content

Look at Recent Container Service Layers for Reproducibility #52

Closed

Description

@mmcky

@thomassargent30 let me know about "singularity containers" as a possible option for QuantEcon

Have you considered using "singularity" from scilab.io as a way of creating "containers" for our quantecon environments? Someone told me that is a good technology.

  • look into singularity
  • develop pro and con compared against conda

Activity

  1. mmcky commented on Dec 16, 2021

    @mmcky
    ContributorAuthor
  2. changed the title [-]Look at using "Singularity" Containers[/-] [+]Look at Recent Container Service Layers for Reproducibility[/+] on Dec 16, 2021
  3. mmcky commented on Aug 7, 2026

    @mmcky
    ContributorAuthor

    Thanks @thomassargent30 — this was a good instinct, and it deserved a reply a great deal sooner than this one. Apologies for the long silence on it.

    The short answer is that we did take the container route, just not through Singularity, and that work is very much alive today.

    Containers were adopted, in Docker/OCI form. That happened under #69, which shipped QuantEcon/lecture-python.docker in April 2023 and has since grown into the container infrastructure in QuantEcon/actions. Two images are published and rebuilt weekly, lecture-dp builds inside one of them today, and the GPU lecture builds run in containers as well. So the first checkbox is answered — the underlying idea was right, and it is now ordinary infrastructure for us.

    Singularity specifically was never the right fit, and that is about our setup rather than the software. Both forks are in good health — Apptainer shipped v1.5.3 in July 2026 and SingularityCE v4.5.0 in June — but the problem Singularity and Apptainer exist to solve is rootless execution on shared multi-tenant HPC clusters, where you cannot be root and cannot run a daemon. We build on GitHub Actions runners and our own RunsOn EC2 instances, where we are root, and we have no cluster allocation anywhere. It also has no native macOS support, which rules it out for local builds. One small correction for the record: the vendor is Sylabs at sylabs.io — the "scilab.io" in the original note is unrelated software.

    The second checkbox turned out to be the wrong question, in a useful way. It is not containers versus conda; it is containers and conda. The container supplies the base system — Ubuntu, TeXLive, CUDA, the toolchain — and environment.yml is applied as a delta on top of it. That is what we actually run, and it is a better answer than either half on its own.

    Where the thread continues. The package layer is still an open question, and #349 (pixi lockfiles) and #165 (uv) are the live proposals there. Neither supersedes this issue — they sit at a different layer of the stack — but that is where the reproducibility work goes next.

    Closing as answered. One part genuinely is not covered, so it is carried forward as QuantEcon/actions#129: our container images are internal, which means they answer the CI half of "containers for our quantecon environments" and not the half about environments that readers and collaborators can build for themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions