Inefficient usage of cache due to "ADD plugins-archive /"

Bug #1839319 reported by Radosław Piliszek
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla
Triaged
Medium
Unassigned

Bug Description

A few images (-base) use:
ADD plugins-archive /
to deliver plugins to the build.
However, the way kolla builds that tarball invalidates the cache every time even with no changes to plugins. This is inefficient.

See:
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#leverage-build-cache
and:
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#add-or-copy

Mark Goddard (mgoddard)
Changed in kolla:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Roman Krček (r-krcek) wrote :

This seems to occur because git leaves some files in the .git folder that contain the time when the repository was cloned, among other things. Thus always invalidating cache. To fix this problem, different approach to including plugins into the image would have to be taken.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.