traderX icon indicating copy to clipboard operation
traderX copied to clipboard

Convert builds to multistage docker builds

Open matthewgardner opened this issue 1 year ago • 2 comments

Feature Request

Description of Problem:

Using multi-stage builds in the creation of the images to optimise image sizes and start time

Potential Solutions:

Leverage multistage builds https://docs.docker.com/get-started/docker-concepts/building-images/multi-stage-builds/

matthewgardner avatar Oct 12 '24 09:10 matthewgardner

Am working on this :)

matthewgardner avatar Oct 12 '24 09:10 matthewgardner

Seems indeed very important for usability and adoption of this project (images too big, and build/deployment time very long). And Security Posture to improve.

Happy to continue working on this to help.

Here is what has been done so far:

  • [X] ingress: https://github.com/finos/traderX/pull/240
  • [X] people-service: https://github.com/finos/traderX/pull/251
  • [X] reference-data and trade-feed: https://github.com/finos/traderX/pull/258
  • [X] position-service: https://github.com/finos/traderX/pull/259 in continuity of what was started here: https://github.com/finos/traderX/pull/232.

So far, more than 4.5 GB have been saved with the uncompressed container images on disk. Number of CVEs with the container images has been reduced by 6K too.

Next:

  • [ ] https://github.com/finos/traderX/pull/264

mathieu-benoit avatar Mar 08 '25 17:03 mathieu-benoit