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

Using repo2docker for local debugging/builds of mybinder.org repos #1

Open
betatim opened this issue May 2, 2019 · 4 comments
Open

Comments

@betatim
Copy link

betatim commented May 2, 2019

Hi 👋 !

I am one of the project leads for mybinder.org and saw you are doing some fairly complex stuff in your Dockerfile as well as rebuilding the repo a lot. Wanted to point you towards http://repo2docker.readthedocs.io/ which is the tool we use on mybinder.org that you can run locally. I find that with running it locally I get much faster turn around on debugging and easier to read logs. I don't know if you are debugging, just an educated guess :)

Super cool to see people from eurostat interested in Binder and making the data you have easier to access!

@betatim
Copy link
Author

betatim commented May 2, 2019

cc @mmatyi because as far as I can tell you aren't watching the repo and doing the committing.

@gjacopo
Copy link
Member

gjacopo commented Feb 18, 2020

@betatim I see that a new image is built every time we push something to the repo (besides any of the config files in the folder binder/): is this normal? Anyway we can avoid it (e.g. providing the docker image) ?

@betatim
Copy link
Author

betatim commented Feb 18, 2020

mybinder.org builds a new image for every commit. What a lot of people do is create a tag in git that they use in links they give out to users. So something like https://mybinder.org/v2/gh/eurostat/statistics-coded/some-tag-you-made. Then you can work on your repository and when there are enough changes to update the image (maybe once a day or once a week?) you move the tag.

The only downside is that new content doesn't appear in the binder instance until you move the tag.


In general to try and speed up build times I'd try and consolidate the many files you have in the binder/ directory to see if you can simplify and use R packages from conda-forge. R packages from CRAN unfortunately take a very very long time to install on linux because there are no binaries.

@gjacopo
Copy link
Member

gjacopo commented Feb 18, 2020

@betatim Thanks for your help...and your patience! That's pretty clear, and actually that was already from the front page of mybinder. I should have checked that earlier! Thanks again!

ericofrs added a commit that referenced this issue Oct 13, 2020
Codinglab update 09.10.2020
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

No branches or pull requests

2 participants