agnos-builder icon indicating copy to clipboard operation
agnos-builder copied to clipboard

Use separate cache for apt

Open robin-reckmann opened this issue 1 year ago • 3 comments

Move apt stuff to separate docker cache. This cache is reusable even if the Docker cache of the step itself breaks. Also reduces the size of the Docker image, as this cache folder is not included anymore.

robin-reckmann avatar Aug 13 '24 14:08 robin-reckmann

apt install step does not have to download packages, but uses cache instead:

#10 73.20 0 upgraded, 457 newly installed, 1 to remove and 0 not upgraded.
#10 73.20 Need to get 0 B/166 MB of archives.
#10 73.20 After this operation, 727 MB of additional disk space will be used.

robin-reckmann avatar Aug 13 '24 15:08 robin-reckmann

Runners lock each other. Probably not the way to go in CI.

robin-reckmann avatar Aug 13 '24 15:08 robin-reckmann

Go with this for local execution and use namespace cache volumes for CI instead.

robin-reckmann avatar Aug 14 '24 04:08 robin-reckmann