rainbond icon indicating copy to clipboard operation
rainbond copied to clipboard

源码构建过慢, 需要优化

Open dinghui40 opened this issue 2 years ago • 5 comments

前端构建会对 node_modules 缓存目录文件进行持久化存储到 grdata 的 pvc 当中, 当我再次构建前端组件 Builder 会从 pvc 拷贝 node_modules 缓存文件进行构建, 而不是挂载, 导致组件构建时间过长。

dinghui40 avatar Jan 04 '24 10:01 dinghui40

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: Front-end source code construction is too slow and needs optimization

The front-end build will persist the node_modules cache directory files and store them in grdata's pvc. When I build the front-end component again, the Builder will copy the node_modules cache files from pvc to build instead of mounting them, which causes the component build time to be too long.

Issues-translate-bot avatar Jan 04 '24 10:01 Issues-translate-bot

不仅前端源码构建慢,现在需要考虑各类源码以及Dockerfile构建均增加缓存机制,提升构建速度

yangkaa avatar Jan 12 '24 07:01 yangkaa

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Not only is the front-end source code construction slow, but now it is necessary to consider adding a caching mechanism for various source codes and Dockerfile construction to improve the construction speed.

Issues-translate-bot avatar Jan 12 '24 07:01 Issues-translate-bot