Skip to content

Ship containers/quantecon-preview: slim TeX-free preview image with pinned deploy CLI #151

Open

Description

@mmcky

#92 Phase 2: ship containers/quantecon-preview — a slim preview image (~1.7 GB zstd vs 2,741 MB for quantecon-build, 1,233 MB of which is TeXLive that an HTML-only preview never uses).

  • Drop the TeX layer; drop the jupyter metapackage (it transitively reinstalls jupyterlab); keep MKL/ipykernel for execution parity
  • Bake the pinned preview-deploy CLI — per the QuantEcon/infrastructure#4 migration this is now wrangler (≥ 4.21.0, see Add Workers static assets support to the Cloudflare preview action #145), not netlify-cli
  • Switch lecture-dp ci/cache/publish to it (consumer half)
  • Add a stack-pins-match assertion to test-container.yml so the preview image cannot drift from the build image — :latest reaches consumers ungated by any release

Not started — no containers/quantecon-preview exists.

Activity

  1. added
    enhancement
    on Aug 13, 2026
  2. mmcky commented on Nov 4, 2026

    @mmcky
    ContributorAuthor

    From the 2026-10-06 codebase review (finding L6; record: .qe/dev/log/2026-10-06-codebase-review.md, #220).

    This issue will add a third copy of the image recipe, and it already plans a parity assertion for its package pins. Worth widening that assertion to the security-relevant lines every Dockerfile repeats by hand:

    • MINICONDA_VERSION / MINICONDA_SHA256;
    • NODE_VERSION / NODE_SHA256;
    • git config --system --add safe.directory '*'.

    As of 2026-10-06 these lines match exactly between containers/quantecon/Dockerfile and containers/quantecon-build/Dockerfile. They match only by convention, though: only the full image carries a "kept in sync" note, and #32 was exactly this drift. Alternatively, if this issue introduces a shared base stage, both existing images could use it.

    One incidental drift to settle at the same time: the fontconfig cache directory is mode 777 in the full image and 755 in the lean one.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions