[REF] odoo160: Speedup pip package installation
Fill the cache without installing the packages
Currently, the production image base doesn't have the pip packages installed from odoo requirements
So, each pipeline to build the image is installing them
It could spends ~3m building wheels and generating the pip cache from scratch
What about pre-generating the pip cache without affecting the current behaviour (no packages installed)
So, it could install faster the same packages
Check the following local tests related
Install | time |
---|---|
wo/cache | ~3m |
w/cache | ~20s |
It is 9x faster and even it is not affecting the current process since the cache is only generated with the current package versions
If the version of the package changes so a new wheel will be built from scratch and the old one will not be used
It is not the same but similar to https://git.vauxoo.com/devops/dockerv/-/merge_requests/22