Skip to content
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

Improve launch time : separate environment (+ databases) from content (notebooks) #13

Open
erwanp opened this issue Jan 4, 2021 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed ⭐⭐⭐_ Priority

Comments

@erwanp
Copy link
Member

erwanp commented Jan 4, 2021

We would need two repo : a new "radis-lab-env" repo with Anaconda & the databases (unzipped and cached), which generates a first Docker, and this one "radis-lab" with the notebooks that builds on the first Docker, so we can modify them without having to rebuild everything

See how : https://discourse.jupyter.org/t/how-to-reduce-mybinder-org-repository-startup-time/4956

This would also allow to use the "radis-lab-env" repo for other Forks, e.g. a student class with only the required notebooks.


Implementation :

we can have GitHub Actions build the Dockers. See link above, and also : https://github.com/jupyterhub/repo2docker-action
Note : if so then we'll have to remove the Binder Build Action #16

@anandxkumar
Copy link

Possible solution:
What we can do is we can create a docker image that will have the radis environment (May not be required if we only want the databases) and all the databases files, we can export this image to docker-hub. Next is we will have the original repo without a database and we will have a docker-compose file which will first build the environment and then pull the docker image that we exported to docker-hub and use it to extract its contents. This way every time there is a commit, even though the docker image will be built again, it only requires to pull the database image that already exists which can save a lot of time.
Same has to be processed using repo2docker and dockerhub.

@erwanp
Copy link
Member Author

erwanp commented Jul 17, 2022

@arunavabasu-03 I'd like if we could include this as part of your project --> it would allow to quickly deploy Notebooks to run examples and illustrate cases; would help all other GSOC students, and it's high impact . Do you think you'd have time for it ? Would you be intested ?

@erwanp
Copy link
Member Author

erwanp commented Jul 17, 2022

This looks like a very useful ressource : https://mybinder.readthedocs.io/en/latest/howto/external_binder_setup.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed ⭐⭐⭐_ Priority
Projects
None yet
Development

No branches or pull requests

2 participants