展示HN:Pooshit – 将本地代码同步到远程Docker容器
发音为 Push-It....<p>我大多数时候是个懒惰的开发者,所以这个工具是为像我这样的人准备的。有时候我只想快速在远程容器中运行我的本地代码,而不想构建镜像、同步到云端 Docker 仓库,或者设置 Git 工作流,或者其他任何耗费精力的方式来让代码在远程运行。<p>使用 pooshit(以及一个简单的配置文件),你可以轻松地将本地开发文件推送到虚拟机上的远程文件夹,然后自动移除相关的运行容器,接着通过一条命令构建并运行更新后的容器。<p>它与反向代理如 nginx 或 caddy 配合良好,因为你可以在 pooshit_config 文件中指定 Docker 运行参数。<p><a href="https://github.com/marktolson/pooshit" rel="nofollow">https://github.com/marktolson/pooshit</a>
查看原文
Pronounced Push-It....<p>I'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://github.com/marktolson/pooshit" rel="nofollow">https://github.com/marktolson/pooshit</a>