-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add Docker Cache #161
Comments
Using Artifact registry is pretty straightforward:
Running this on GCB, the cache does help speed up the the build_essentials install in our debian dockerfile, however a lot of this performance increase is lost due to:
This is better than the ~120 seconds of apt install build-essentials we're trying to cache, but it's still not ideal. I suspect this is related to docker/buildx#107. In that issue, it seems the problem might be that we're using
Frustratingly, a different part of the documentation claims (incorrectly) that the built-in
But when attempting to use that we get:
I experimented by removing For now, I'm going to put a pin in the docker caching. I'd like to run a moderate size benchmark of debian builds to better understand which part of the builds are limiting us (#163 will help there). |
Especially for Debian, where the build-essentials take (~1 minute) to install, a docker cache would help speedup rebuilds.
Reading the docs for docker caching, it seems like there are three relevant options:
local
: A local file system which could potentially be backed by GCS using FUSEregistry
: An OCI registry which could potentially be Artifact Registrys3
: An S3 bucket (potentially GCS could be used for that?)I'm currently leaning towards the
registry
option, using Artifact Registry. Thes3
option pointed to a GCS bucket is tempting, because we're already using GCS extensively. However thes3
option is currently in anunreleased
state.The
local
options is not very appealing because we'd need to map the local file system to some shared resource across all the builds.The text was updated successfully, but these errors were encountered: