Laradock ppa加速

环境 laradock-9.7 + win10 + docker desktop

laradock 项目地址

 

问题:

构建 workspace 服务时 卡在这动不了,各种搜资料终于解决了

 

解决方法:

 

 在 workspace 的 Dockfile 中 增加标红的一段:

find /etc/apt/sources.list.d/ -type f -name "ondrej-ubuntu-php-xenial.list" -exec  sed  -i.bak -r  's#deb(-src)?\s*http(s)?://ppa.launchpad.net#deb\1 https\2://launchpad.proxy.ustclug.org#ig' {} \; && \

 

参考:

https://mogeko.me/2018/035/

https://www.zhenyan.io/zh-cn/Download-Open-Source-Resources-Faster-in-Mainland-China/

https://github.com/ustclug/mirrorrequest/issues/43

https://www.yaozeyuan.online/2018/04/01/2018/04/Ubuntu16.04%E5%AE%89%E8%A3%85PHP7.2/

https://learnku.com/articles/6018/homemade-ppa-accelerated-mirror-image

https://segmentfault.com/a/1190000021076776

https://segmentfault.com/a/1190000021848135

 

posted @ 2020-02-27 20:39  白開水  阅读(2111)  评论(0编辑  收藏  举报