Amazon EC2 上实际上是否有任何 Mercurial 托管?

发布于 2024-09-01 10:55:59 字数 170 浏览 3 评论 0原文

我需要能够在重置时从 Mercurial 中的标签更新我的 ec2 实例,以便我的应用程序始终设置为正确的版本。

如果能够将我的更改推送到 Mercurial 主机,并在重置时让我的实例在 ec2 网络上自动更新,那就太棒了!

我真的不想在同一个实例(甚至是专用实例)上托管 Mercurial

I need to be able to update my ec2 instance from a label in mercurial when it resets so my application is always set at the right revision.

It'd be great to be able to push my changes to a mercurial host and have my instances automatically update across the ec2 network when they are reset!

I really don't want to host mercurial on the same instance (or even a dedicated instance)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄风 2024-09-08 10:55:59

您想要的是 Mercurial 原生支持使用 S3 作为数据存储的后端,但不存在这样的代码。您也许可以找到一个在FUSE(或S3- >DAV 桥,您可以将其安装为文件系统),然后告诉 Hg 从该虚拟文件系统推送和提取数据,但否则您将需要一个专用的 ec2 实例来实际提供数据(您可以按需启动它,但延迟非常糟糕,您可能很清楚)。

S3 有一个基于 FUSE 的文件系统,称为 s3fs,但看起来它主要是一个商业产品的驱动程序。

(另外,根据您的 ec2 架构,并假设您在多个实例上有重叠的正常运行时间,理论上您可以利用 Hg 的分布式特性来使用现有实例在它们之间传递更改,而无需“根”存储库如果你只有一个实例,当然这是不可能的。)

What you want is Mercurial to natively support using S3 as a backend for data storage, and no such code exists. You could maybe find an S3 bridge to run in FUSE (or an S3->DAV bridge that you could possibly mount as a filesystem), and then tell Hg to push and pull data from that virtual filesystem, but otherwise you would need a dedicated ec2 instance to actually serve the data (you could launch it on demand, but the latency on that is pretty bad, as you probably well know).

There is a FUSE-based filesystem for S3 called s3fs, but it looks like it's mainly a driver for a commercial offering.

(As a separate aside, depending on your ec2 architecture, and assuming you have overlapping uptimes on multiple instances, you could theoretically leverage the distributed nature of Hg to use your existing instances to pass the changes around amongst themselves, without a "root" repository. If you only have one instance, of course, this is a non-starter.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文