Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚡️perf: accelerating docker image builds: from 1 hour to 8 minutes #5301

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

coulsontl
Copy link
Contributor

@coulsontl coulsontl commented Jan 5, 2025

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • 📝 docs
  • 🔨 chore

🔀 变更说明 | Description of Change

由单一机器构建改为多机器并行编译, 同时ARM架构使用ARM机器编译不再使用虚拟机转译,最后进行多构架合并。
image

使用github最新的ARM机器:https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/

📝 补充信息 | Additional Information

优化之前1小时3分钟
image

优化之后8分钟
image

Copy link

vercel bot commented Jan 5, 2025

@coulsontl is attempting to deploy a commit to the LobeHub Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jan 5, 2025
Copy link

gru-agent bot commented Jan 5, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail 6a6194a 🚫 Skipped No files need to be tested {".github/workflows/docker-database.yml":"target file(.github/workflows/docker-database.yml) not in work scope \n include: /*.ts,/.tsx,**/.js,/*.jsx \n exclude: node_modules,/.test.ts,**/.test.tsx,/*.spec.ts,/.spec.tsx,**/.d.ts,/*.test.js,/.spec.js",".github/workflows/docker.yml":"target file(.github/workflows/docker.yml) not in work scope \n include: **/.ts,/*.tsx,/.js,**/.jsx \n exclude: node_modules,/*.test.ts,/.test.tsx,**/.spec.ts,/*.spec.tsx,/.d.ts,**/.test.js,**/*.spec.js"}

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

@dosubot dosubot bot added the ⚡️ Performance Performance issue | 性能问题 label Jan 5, 2025
@lobehubbot
Copy link
Member

👍 @coulsontl

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

Copy link

codecov bot commented Jan 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.59%. Comparing base (b4a160b) to head (54c7cad).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##             main    #5301     +/-   ##
=========================================
  Coverage   92.59%   92.59%             
=========================================
  Files         642      642             
  Lines       56124    56124             
  Branches     2693     4245   +1552     
=========================================
  Hits        51966    51966             
  Misses       4158     4158             
Flag Coverage Δ
app 92.59% <ø> (ø)
server 97.99% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@coulsontl coulsontl changed the title ⚡️提升Docker镜像构建速度(减少构建时间约10分钟) ⚡️提升Docker镜像构建速度(从1小时减少到8分钟) Jan 18, 2025
@coulsontl coulsontl changed the title ⚡️提升Docker镜像构建速度(从1小时减少到8分钟) ⚡️Accelerating Docker Image Builds: From 1 Hour to 8 Minutes Jan 18, 2025
@coulsontl coulsontl changed the title ⚡️Accelerating Docker Image Builds: From 1 Hour to 8 Minutes ⚡️perf: accelerating docker image builds: from 1 hour to 8 minutes Jan 18, 2025
@coulsontl
Copy link
Contributor Author

经常看到代码更新了想体验一把,结果镜像还没打出来的情况,镜像打包太慢了。 @arvinxx review please!

@lobehubbot
Copy link
Member

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


I often see situations where the code has been updated and I want to try it out, but the image has not yet been generated. The image packaging is too slow. @arvinxx review please!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡️ Performance Performance issue | 性能问题 size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants