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 Caching in Docker builds #157

Open
amouat opened this issue Aug 26, 2020 · 3 comments
Open

Improve Caching in Docker builds #157

amouat opened this issue Aug 26, 2020 · 3 comments

Comments

@amouat
Copy link
Contributor

amouat commented Aug 26, 2020

I've played around with this a bit, but our Docker builds are still pretty slow, especially in GitHub actions.

BuildKit has some nice features that we might be able to use to improve things. Could we have a cache of rust packages pulled in from another image use --cache-from?

@amouat
Copy link
Contributor Author

amouat commented Nov 8, 2020

@dchw
Copy link

dchw commented Mar 25, 2021

I'm willing to help out here! I think I could help speed it up, by introducing an Earthfile, which can help reproducibility and uses the baked-in Buildkit caching. We see pretty decent speed improvements on our own builds from the Buildkit cache.

Of course, as long as you and your project are open to the idea of course.

@amouat
Copy link
Contributor Author

amouat commented Mar 26, 2021

Interesting! I've not seen this before. I'm open to this idea, but I'm also reluctant to introduce more tech - it's really easy to just get started with a Dockerfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Trow
  
To do
Development

No branches or pull requests

2 participants