-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Monorepo in Binder #1030
Comments
This is unlikely to be implemented. BinderHub operates with the assumption that "the shareable unit is the repo". There is support for "build from a sub directory" in the underlying tool we use (http://repo2docker.readthedocs.io/) however we don't expose this at the BinderHub level. Some reasons for this are that the functionality is only asked for by a small number of people (monorepos aren't mega popular in the languages we support), our caching mechanisms are based on commit SHAs (different SHA implies "needs rebuild", we don't inspect sub-directories), how to expose this in the GUI without making it more complicated/adding a new field (the GUI is already overwhelming for newcomers). To help with slow (re)builds via a different route: Depending on how you specify the dependencies in your repository you should get (very) good caching of the builds when only notebooks get edited. For example a repository with a basic We invested quite a bit of effort to try and organise the layers to maximise caching. Empirically it works for our mybinder.org deployment but it would be interesting to get feedback from other deployments. For this we need a link to a repo that doesn't end up profiting from the caching even though it looks like it should. |
@betatim I am stuck with the issue of supporting different binder configs for my monorepo examples without needing dangling branches. Would be glad to have some clean workarounds. Maybe allowing/processing extra url query parameters without changing the mybinder GUI itself would suffice for advanced use-cases we are facing. My use case is to primarily create a jupyterlab environment for my monorepo, and add another custom draw.io docker binder cross-connecting jupyterlab workflow for same monorepo. |
Hey folks, I am hosting an internal Binder instance for my organisation. Some engineering teams here own very big mono-repo with many notebooks inside. When they load such repo in Binder, it is going to install dependencies for all notebooks in the runtime container.
Given most people are only interested in a few notebooks at one launch, this bulk loading behaviour is very undesirable because
If Binder can support building repo and tracking changes on the subdirectory level, then it would be very helpful to us. What do you folks think?
The text was updated successfully, but these errors were encountered: