-
Notifications
You must be signed in to change notification settings - Fork 28
Try using Depot #44
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
Try using Depot #44
Conversation
This is to avoid having the dangling base-devel-xx Docker images that are used only to cache internal steps (common throughout PHP versions). Since Depot caches all intermediary layers very aggressively, that intermediary image that serves as a cache becomes useless.
This will help to solve build dependency issues and image visibility with Depot.dev. The added complexity (duplicated code) is very minor, and Docker will cache the build steps anyway, so I find that acceptable.
This is a complete success! Without Depot:
Important note: with full caching, I managed to get done to 2-3 minutes, but that wasn't stable as the cache was too big and failed most of the time. That's why I cached less things and got to 10min, but even then that wasn't stable enough to work all the time. With Depot:
Also note that using Depot is completely optional, and used only in CI by default. Locally it will build with |
This is an attempt at using https://depot.dev to accelerate builds with caches.