Activity log for bug #1657109

Date Who What changed Old value New value Message
2017-01-17 12:39:42 Paul Bourke bug added bug
2017-01-17 12:40:20 Paul Bourke description When building source type images from git locations, the '.git' directory from the repo is included in the tarball which bloats the size of the images. E.g. for nova-base, the image built from tarballs is ~846.1 MB, whereas the same from git is 1.134 GB. This could be as simple as excluding the .git directory when creating the tarball, however pbr requires this to install the package. Another solution is to use COPY rather than ADD to skip extracting the tarball into the image, so that it can be extracted, installed, and then removed as part of a single layer during build. This is also not great though as the .git dir does not compress well in a lot of cases. A solution I've tested that works well is to use 'python setup.py sdist' to create the tarball that gets ADDed to the image. When building source type images from git locations, the '.git' directory from the repo is included in the tarball which bloats the size of the images. E.g. for nova-base, the image built from tarballs is ~846.1 MB, whereas the same from git is 1.134 GB. This could be as simple as excluding the .git directory when creating the tarball, however pbr requires this to install the package. Another solution is to use COPY rather than ADD to skip extracting the tarball into the image, so that it can be extracted, installed, and then removed as part of a single layer during build. This is also not great though as the .git dir does not compress well in a lot of cases. A solution I've tested that works well is to use 'python setup.py sdist' to create the tarball that gets ADDed to the image. With this, the size of an image created from a git repo is almost identical to that of the tarball build type.
2017-01-17 13:47:53 Steven Dake kolla: status New Triaged
2017-01-17 13:47:59 Steven Dake kolla: importance Undecided Low
2017-01-17 14:29:44 Paul Bourke kolla: status Triaged In Progress
2017-01-17 14:29:52 Paul Bourke kolla: importance Low Wishlist
2017-01-17 14:29:56 Paul Bourke kolla: assignee Paul Bourke (pauldbourke)
2020-11-16 12:38:05 Mark Goddard kolla: status In Progress Triaged
2020-11-16 12:38:09 Mark Goddard kolla: assignee Paul Bourke (pauldbourke)
2023-01-31 05:48:19 Michal Nasiadka kolla: status Triaged Invalid