Skip to content

Trim Binder build context to fit mybinder.org limits#12

Merged
erikfilias merged 1 commit into
mainfrom
trim-binder-context
Jun 29, 2026
Merged

Trim Binder build context to fit mybinder.org limits#12
erikfilias merged 1 commit into
mainfrom
trim-binder-context

Conversation

@erikfilias

@erikfilias erikfilias commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

The Binder image bundled the openTEPES submodule's example cases, case studies, docs and tests (~700 MB), which the tutorial never uses (it has its own cases under notebooks/). That pushes the image past mybinder.org's build limits, even though the repo2docker CI passes on GitHub's larger runners.

The editable install only needs pyproject.toml and the openTEPES/ package, so this excludes the unused data via .dockerignore, shrinking the submodule's contribution from ~700 MB to ~2.5 MB. Verified locally that the editable install and import openTEPES still work without those directories.

The repo2docker CI on this PR builds the trimmed image and runs the demo notebook.

The Binder image bundled the openTEPES submodule's example cases, case studies,
docs and tests (~700 MB), which the tutorial never uses (it has its own cases
under notebooks/). That bloated the image past mybinder.org's build limits even
though the repo2docker CI passed on the larger GitHub runners. The editable
install only needs pyproject.toml and the openTEPES/ package, so excluding the
data shrinks the submodule's contribution from ~700 MB to ~2.5 MB. Verified the
editable install and import still work without those directories.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@erikfilias erikfilias merged commit be68b5f into main Jun 29, 2026
1 check passed
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.

1 participant