BlueOS icon indicating copy to clipboard operation
BlueOS copied to clipboard

core: build: Improve current build times

Open joaomariolago opened this issue 1 year ago • 0 comments

Current behaviour

  • Frontend build is already faster than current backend build, so the focus should be on backend building
  • Python Packages Caching Issue: We have encountered difficulties with caching Python packages. Each rebuild of the image triggers a reinstallation of all packages, this repetitive process is currently slowing down our build.
  • Exploring Package Manager's "Host" Mode: One potential solution to reduce build times would be investigate whether our package manager supports a "host" mode. This mode could allow us to share dependencies more effectively, minimizing the need for repetitive installations.
  • Shared Virtual Environment for Python Services: Another approach to consider is the utilization of a shared virtual environment across Python services.
  • Investigation into Python UV: We could investigate the potential use of UV if it integrates well with the project and maybe perform better
  • Selective Installation of Libraries and Services:We should install the libraries but not the services and just move the services to the final docker build stage

Expected or desired behaviour

Better building times

Prerequisites

  • [X] I have checked to make sure that a similar request has not already been filed or fixed.

joaomariolago avatar Mar 08 '24 14:03 joaomariolago