dockerFile 中安装composer....

RUN curl -s -f -L -o /tmp/installer.php https://raw.githubusercontent.com/composer/getcomposer.org/da290238de6d63faace0343efbdd5aa9354332c5/web/installer \&& php -r " \\$signature = '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410'; \\$hash = hash('SHA384', file_get_contents('/tmp/installer.php')); \if (!hash_equals(\$signature, \$hash)) { \unlink('/tmp/installer.php'); \echo 'Integrity check failed, installer is either corrupt or worse.' . PHP_EOL; \exit(1); \}" \&& php /tmp/installer.php --no-ansi --install-dir=/usr/bin --filename=composer --version=${COMPOSER_VERSION} \&& composer --ansi --version --no-interaction \&& composer config -g repo.packagist composer https://packagist.phpcomposer.com \&& rm -rf /tmp/* /tmp/.htaccess

执行到

php /tmp/installer.php

报 "Failed to decode zlib stream"

原因是:网络连接的问题 请使用代理~

参考:https://github.com/composer/composer/issues/4619

转载于:https://www.cnblogs.com/zjhblogs/p/10631289.html

composer Failed to decode zlib stream相关推荐

  1. springboot : Failed to decode downloaded font 和 OTS parsing error

    大家好,我是烤鸭: 采坑实录,看了很多人跟我有类似问题,但是都没解决我的问题: Failed to decode downloaded font 和 OTS parsing error: 尝试了把wo ...

  2. Springboot项目引入Bootstrap后,图标不能正常显示,报:Failed to decode downloaded font

    springboot项目引入bootstrap后,报:Failed to decode downloaded font,图标不能正常显示 在pom文件中,添加如下配置 <plugin>&l ...

  3. Failed to decode downloaded font(线上环境字体图标不显示)

    1.问题:maven项目使用Bootstrap时,出现 "Failed to decode downloaded font"和"OTS parsing error: Fa ...

  4. Failed to decode downloaded font

    小Z上周五晚上和同事加班,同事反映了这样一个BUG. 网页上有一段文本需要采用方正超粗黑简体的字体,资源文件为"方正超粗黑简体.TTF",为美工提供.同事反映网站浏览器提示&quo ...

  5. 报错Failed to decode param

    vue 项目启动报错Failed to decode param '/%3C%  后面还有很多. 解决:缺少包.npm install 就好了 . 以后遇上这些无厘头的问题先重启项目 ,不好用再ins ...

  6. Spring Boot + Bootstrap 出现Failed to decode downloaded font和OTS parsing error: Failed to convert W

    转载自:https://www.cnblogs.com/tomcatandjerry/p/5799188.html 准确来讲,应该是maven项目使用Bootstrap时,出现 "Faile ...

  7. opencv3.4+vs2017调用摄像头以及常见错误:[ WARN:0] Failed to set mediaType (stream 0, (640x480 @ 30) MFVideoForma

    一.代码 #include <iostream> #include <opencv2\opencv.hpp> #include <opencv2\imgproc\imgp ...

  8. Flask werkzeug.exceptions.BadRequest: 400 Bad Request: Failed to decode JSON object: None

    今天在部署flask服务的时候发现了下面的问题: param = dict(args=request.args, post=request.json)File "/root/anaconda ...

  9. php composer failed to open file: phar://composer.phar/bin........问题解决

    今天用命令行运行composer安装依赖时突然报如下错误: <b>Notice</b>: failed to open file: phar://composer.phar/b ...

最新文章

  1. 新建arcgis api for android 项目失败
  2. html-mailto
  3. mailto发送邮件
  4. 为什么有时优盘是只读模式_JS专题之严格模式
  5. 调用高德逆地理接口_地理编码与逆地理编码
  6. 系列3—BabeLua常用技巧
  7. 钢铁侠或漫威中有哪些黑科技?
  8. honoo 门禁控制器参数配置表
  9. TOTP 介绍及基于C#的简单实现
  10. python中len函数_len()函数以及Python中的示例
  11. 中基鸿业普通家庭如何理财
  12. ESModule中载入commjs
  13. Elasticsearch启动报错:warning: ignoring JAVA_HOME=C:\Program Files\Java\jdk1.8.0_191; using bundled JDK
  14. 概述知识图谱在人工智能中的应用
  15. PlumeLog-Java分布式日志组件,支持百亿级别,日志从搜集到查询,不用去文件中翻阅日志方便快捷
  16. 低功耗微波雷达模组的应用你都知道多少?
  17. python 入门一(数据结构)
  18. Redis之在Linux上安装和简单的使用
  19. c语言 if自动机 while自动机 bool自动机 算术自动机
  20. Blender BMesh数据结构解密

热门文章

  1. 《Exchange Server 2010 SP1/SP2管理实践》一2.2 部署域名解析网络环境
  2. [Python]网络爬虫(二):利用urllib2通过指定的URL抓取网页内容
  3. SpringBoot(1.5.6.RELEASE)源码解析(一)
  4. AutoBench+Httperf的安装、测试
  5. 海量数据处理:BitMap
  6. 2.LRU算法实现 [C++]
  7. Java 向上类型转换与向下类型转换的理解【复习】
  8. Android --- Binary XML file line2 Binary XML file line 2 Error inflating class unknown
  9. android一天一次弹窗,Android自定义Toast,多次弹出时取消上次弹出,最后一次弹出为准...
  10. python add argument list_python模块介绍- argparse:命令行选项及参数解析