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
[MRG] Add caching of already built repositories #511
Conversation
41d61ae
to
e34d780
Compare
Should we try again with this @yuvipanda? :) |
a471a5c
to
9bc0905
Compare
repo2docker/app.py
Outdated
return True | ||
return False | ||
|
||
def _build_image(self, checkout_path): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this can be folded into the build function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I liked the separation because build()
does a bunch of things before&after building, and _build_image()
just builds the image. :-/ It is an attempt to make the functions a bit shorter. Happy to move it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bump
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Private conversation with @yuvipanda just now: we put everything back in one method and he is happy with that.
Maybe look at splitting at a later point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment. I like the mocking!
031ce51
to
35fc757
Compare
Add tests for image caching Adjust tests and main app for cached builds Remove obsolete command-line handling Remove print statement from test Fix subdirectory handling Put back exception instead of sys.exit()
35fc757
to
e7018d7
Compare
[MRG] Add caching of already built repositories
This PR is a revival of #461