Show HN: Pooshit – 将本地代码同步到远程 Docker 容器

2作者: marktolson9 个月前
发音为 Push-It... 我大部分时间都是个懒惰的开发者,所以这个工具是为像我这样的人准备的。有时候我只想快速地在远程容器中运行我的本地代码,而不想构建镜像、同步到云端 Docker 仓库、设置 Git 工作流程,或者使用任何其他令人疲惫的方式来远程运行代码。 有了 pooshit(和一个简单的配置文件),你就可以简单地将本地开发文件推送到虚拟机上的远程文件夹,然后自动移除相关的正在运行的容器,接着通过一个命令行调用来构建并运行一个更新后的容器。 它与 nginx 或 caddy 等反向代理配合得很好,因为你可以在 pooshit 配置文件中指定 docker run 的参数。 <a href="https://github.com/marktolson/pooshit" rel="nofollow">https://github.com/marktolson/pooshit</a>
查看原文
Pronounced Push-It....<p>I&#x27;m a lazy developer for the most part, so this is for people like me. Sometimes I just want my local code running in live remote containers quickly, without building images and syncing to cloud docker repos or setting up git workflows or any of the other draining ways to get your code running remotely.<p>With pooshit (and a simple config file), you can simply push your local dev files to a remote folder on a VM then automatically remove relevant running containers, then build and run an updated container with one command line call.<p>It works well with reverse proxies like nginx or caddy as you can specify the docker run arguments in the pooshit_config files.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;marktolson&#x2F;pooshit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;marktolson&#x2F;pooshit</a>