观察 docker 卷中的 Git 存储库
我设置了一个简单的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论