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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM