-
Notifications
You must be signed in to change notification settings - Fork 252
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
Avoid refetching dependencies when updating code in docker image #217
Comments
Which dependencies? The OS or pip? |
Yeah it was not clear, i'm talking about pip dependencies. |
How sure are we that the GitHub CI will keep the docker images in cache? This might be pointless if GitHub doesn't keep the images around. In any case, if it's possible it would save us a lot of CI minutes and really speed up the PR check process. |
I'm not sure about docker caching for github workflows... I opened the PR because I was fixing a bug which was docker-dependant and to debug I needed to change the codebase some times, but everytime I did it it pulled the whole dependencies, filling my storage space because it was a new (big) cache layer. It's mostly for this use case that it's problematic I think |
I mean, it would be clean to have the dependencies as a separate layer, I agree. If it boosts the CI times at the same time, then that would be nice. |
I can try to address this. However, I recall having to add explicitly a copy of the whole source tree for the pip install step. Also note that no matter what changes in the code, the runtime image will be rebuilt, so even if we can skip some of the |
I have to admit that building that image is quite long now with pyside2, pyav, dbus-python all being compiled for an unrelated code change. I should have something that improves things a little shortly. |
Currently, when changing code in pyrdp and rebuilding the image, the dockerfile fetches the dependencies again because the whole pyrdp folder is copied before the dependencies are fetched, increasing build time considerably.
There should be a way to fetch dependencies before copying the pyrdp code in the docker image.
The text was updated successfully, but these errors were encountered: