观察 docker 卷中的 Git 存储库

发布于 2025-01-13 20:15:29 字数 305 浏览 2 评论 0原文

我设置了一个简单的 http 服务器,它提供目录内容,在 docker 中运行。 该目录的内容是一个静态网页,使用 git 进行版本控制。当站点发生更改时,远程存储库就会更新。

当远程存储库更新时,如何自动更新克隆存储库。克隆的存储库会监视更改,或者远程会发送一些挂钩。或者是否有一些 git 存储库的镜像机制?

是否有类似于 Watchtower 的东西,但对于卷中的 git 存储库而不是 docker 镜像可用?

I have a setup of a simple http server that serves the content of a directory, running in docker.
The content of the directory is a static web page, that is versioned with git. When changes happen to the site the remote repository is updated.

How can the cloned repository be updated automatically, when the remote repository is updated. Either the cloned repository watches for changes or the remote sends some hook. Or is there some mirroring mechanism for git repositories?

Is something like Watchtower but for git repositories in volumes instead of docker images available?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文