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

增加对应用部署版本策略的支持 #57

Closed
wants to merge 5 commits into from

Conversation

AvenSun
Copy link
Contributor

@AvenSun AvenSun commented May 21, 2024

场景:
假如现在有非托管应用Relay,现有Windows/Linux/Arm64等平台要部署。如果用现有版本星尘去部署,
做法可能得是建立分别RealyWindow/RelayLinux/RelayArm64三个应用,然后分别添加对应平台的
二进制应用进行发布,这么做倒是可以但不大灵活。

实现:
仿节点版本的做法进行改造,实现只添加一个应用,然后客户端根据设定的策略自动拉取正确的应用进行部署。

效果:

add

list

以上改动我这边已测试通过,各位有兴趣的朋友可以拉取试一下,如发现问题请指正!

@nnhy
Copy link
Member

nnhy commented May 21, 2024

这个功能,刚好是我们规划的功能之一。
计划给文件版本增加一个字段,直接选择指令架构。那么拉取的时候,每个节点自动选择合适的架构。因为节点表里面有字段记录当前节点的处理器架构。
采用策略的方式,虽然能够解决问题,但是太复杂了。

@AvenSun
Copy link
Contributor Author

AvenSun commented May 21, 2024

@nnhy
对,用下拉更简洁,那我关掉这个pr。

@AvenSun AvenSun closed this May 21, 2024
qcjxberin pushed a commit to PeiKeSmart/DH.FrameWork that referenced this pull request Jul 29, 2024
[feat]支持多运行时版本部署,例如上传win-x64/osx-arm64/linux-musl-arm等不同包,各节点根据需要拉取满足自己系统类型和芯片架构的包。NewLifeX/Stardust#57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants