在我的家庭网络上无需更改我的客户,是否有一种很好的方法来缓存APT和PIP软件包?
我正在测试和构建许多容器,通过互联网连接缓慢。每次我测试重建时,都必须重新下载所有APT和PIP软件包。
我已经看到了一些与Docker本地缓存的解决方案,但是我需要构建过程来为其他开发人员以及部署期间工作。
我还找到了许多解决方案,可以使用本地服务器缓存APT和PIP,但是所有这些解决方案都需要更改客户也对我也不起作用的客户。
有什么方法可以将路由器级别的DNS重定向到本地软件包缓存服务器或类似的解决方案?
另外,希望避免XY问题,我是否缺少更好的解决方案?
谢谢!
I am testing and building a lot of containers over a somewhat slow internet connection. Every time I test a rebuild it has to re-download all the apt and pip packages.
I have seen a couple solutions to cache locally with docker, but I need the build process to work for other developers and also during deploy.
I have also found a number of solutions to caching apt and pip with a local server, but all of them require changes to the clients which also won't work for me.
Is there a way I can set up a router level DNS redirect to a local package caching server, or a similar solution?
Also, in the hopes to avoid the XY problem, is there a better solution I am missing?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最终增加了
码头
,这使得该过程减轻了痛苦。
I ended up adding
and
to the Dockerfile and that made the process much less painful.