Skip to content

Pin Miniconda + apt-get clean in full container, matching lean (#32) - #45

Merged
mmcky merged 1 commit into
mainfrom
fix/pin-miniconda-full-container
Jun 16, 2026
Merged

mmcky merged 1 commit into
mainfrom
fix/pin-miniconda-full-container

Conversation

@mmcky

@mmcky mmcky commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Closes #32 (C2, L20) — brings the full quantecon image's Miniconda install in line with the lean quantecon-build image.

C2 — pin Miniconda + verify SHA256

The full image pulled Miniconda3-latest-Linux-x86_64.sh with no checksum — a supply-chain and reproducibility risk. Now it pins the exact version and verifies the SHA256, identical to the lean image:

ENV MINICONDA_VERSION=py313_25.11.1-1
ENV MINICONDA_SHA256=e0b10e050e8928e2eb9aad2c522ee3b5d31d30048b8a9997663a8a460d538cef
RUN curl -L .../Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh -o /tmp/miniconda.sh && \
    echo "${MINICONDA_SHA256}  /tmp/miniconda.sh" | sha256sum -c - && \
    ...

L20 — apt-get clean parity

Added apt-get clean after rm -rf /var/lib/apt/lists/*, matching the lean image (small image-size win).

Notes

  • The pin is deliberately the same version + hash as quantecon-build, with a comment to keep them in sync. When bumping Miniconda, both Dockerfiles should move together.
  • Verified the resulting install lines are byte-identical to the lean image.

Closes #32

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings June 16, 2026 03:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the reproducibility and supply-chain hygiene of the full containers/quantecon image by aligning its Miniconda installation and apt cache cleanup behavior with the lean containers/quantecon-build image (per #32).

Changes:

  • Pin Miniconda to a specific version in the full image and verify the installer via SHA256 (matching quantecon-build).
  • Add apt-get clean after package installation cleanup for closer parity and slightly smaller layers.
  • Document the change in CHANGELOG.md under Unreleased.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
containers/quantecon/Dockerfile Pins Miniconda installer + SHA256 verification and adds apt-get clean for apt cache parity with the lean image.
CHANGELOG.md Records the container reproducibility/security and cleanup parity change under Unreleased.

- C2: the full `quantecon` image pulled Miniconda3-latest with no checksum.
  Pin MINICONDA_VERSION=py313_25.11.1-1 and verify SHA256, identical to the
  lean `quantecon-build` image — supply-chain + reproducibility parity.
- L20: add `apt-get clean` after clearing apt lists, matching the lean image.

Closes #32

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@mmcky
mmcky force-pushed the fix/pin-miniconda-full-container branch from d191bde to 93663e1 Compare June 16, 2026 05:26
@mmcky
mmcky merged commit 302d148 into main Jun 16, 2026
@mmcky
mmcky deleted the fix/pin-miniconda-full-container branch June 16, 2026 05:41
mmcky added a commit that referenced this pull request Jun 16, 2026
…ge (#47)

* Add Dependabot for the container conda environments

Watches containers/quantecon and containers/quantecon-build environment.yml
via Dependabot's conda ecosystem (GA Dec 2025), which resolves Python
packages through PyPI — keeping the pip toolchain (jupyter-book,
quantecon-book-theme, sphinx-* extensions, kaleido) current with weekly PRs.

Conda-only entries (anaconda metapackage, nodejs) aren't on PyPI and stay
manual; `python` is ignored so the version stays under our control.

This complements the pinned Miniconda installer (#45): we pin for
reproducible/verifiable builds, and Dependabot proposes the package bumps so
the environment doesn't silently drift.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* dependabot: also track third-party actions and the container base image

- github-actions: keep the third-party actions current across .github/workflows
  and each composite action subdir (they must be listed explicitly — Dependabot
  only scans the given directory's action.yml). Ignores our own internal
  quantecon/actions @v0 sibling references.
- docker: track the ubuntu:24.04 base image in both Dockerfiles.

This also covers the Dependabot half of #39 (the SHA-pinning piece is separate).

Co-Authored-By: Claude Opus 4.8 <[email protected]>

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Containers: pin Miniconda (SHA256) and add apt-get clean parity in full image

2 participants