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

⚡️提升Docker镜像构建速度(减少构建时间约10分钟) #5301

Open
wants to merge 2 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

由单一机器构建改为多机器并行编译,最后进行多构架合并
image

如果作者有自己的ARM机器的话,还支持ARM架构单独使用自己的机器构建,来进一步提升构建速度
https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/adding-self-hosted-runners

📝 补充信息 | Additional Information

优化之前56分钟
image

优化之后46分钟
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.10%. Comparing base (de09895) to head (6a6194a).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##             main    #5301     +/-   ##
=========================================
  Coverage   92.10%   92.10%             
=========================================
  Files         572      572             
  Lines       44167    44167             
  Branches     3922     2758   -1164     
=========================================
  Hits        40678    40678             
  Misses       3489     3489             
Flag Coverage Δ
app 92.10% <ø> (ø)
server 97.70% <ø> (ø)

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.

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