goodrain / rainbond

No need to know Kubernetes' cloud native application management platform | 不用懂 Kubernetes 的云原生应用管理平台
https://www.rainbond.com
GNU Lesser General Public License v3.0
5.05k stars 789 forks source link

源码构建过慢, 需要优化 #1823

Open dinghui40 opened 10 months ago

dinghui40 commented 10 months ago

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

Issues-translate-bot commented 10 months ago

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.

yangkaa commented 10 months ago

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

Issues-translate-bot commented 10 months ago

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.