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
Adding small changes to use docker layers for cache #1338
Conversation
🤔 still didn't cache. Is :latest that much out of date? |
node:12 was updated a day ago - I can't tell how different it is though, at least from the Docker Hub interface. We'd have to have had a manifest with layers (from before) and now after. |
That would explain. The layer hash is used to see if it needs to be invalidated for caching. How big of a difference doesn't matter. Still think it's interesting, should we use :dev instead of :latest? |
I think it we target a more specific version of node:12, we would be more likely to get a cache. That said, if we target a more specific version, we probably won't get the same security updates. So - it's a tradeoff. |
Agreed, I rather build a little longer than miss out on security updates. So thinking about
master and tag releases should benefit from Main situations other branches wouldn't benefit I think. But it would be a lot better whenever. So I think it would give overall better results. |
okay so just to verify - you want to pull dev, to be added (used for cache) to build tag and master releases? |
I think it should be all 3 on dev. So it can replace the :latest pull. |
Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
"latest" changed to "dev" |
Updated my comment for the record to avoid confusion. I think the other branches benefits a lot from :dev. |
merged from @Beanow's approval. thanks! :) |
Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
This pull request will pull sourcecred/sourcecred:latest first and then use the layers for cache as extra build args. @Beanow figured out all the logistics for sourcecred/widgets, and as promised, I'm following up on the merge of #1320.
Signed-off-by: Vanessa Sochat vsochat@stanford.edu