fiware cygnus Docker构build失败

编辑我尝试安装cgynus-ngsi首先我安装现成的图像,并testing它的工作正常,但是当尝试重新configurationagent.conf我编辑文件,并尝试从头安装cgynus-ngsi它发现这个问题尝试其他镜像。

Setting up Install Process http://ftp.uma.es/mirror/CentOS/6.9/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://ftp.uma.es/mirror/CentOS/6.9/os/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds') Trying other mirror. http://sunsite.rediris.es/mirror/CentOS/6.9/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://sunsite.rediris.es/mirror/CentOS/6.9/os/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds') Trying other mirror. http://mirror.trueinter.net/centos/6.9/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.trueinter.net/centos/6.9/os/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds') Trying other mirror. http://mirror.uv.es/mirror/CentOS/6.9/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.uv.es/mirror/CentOS/6.9/os/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds') Trying other mirror. http://ftp.cica.es/CentOS/6.9/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://ftp.cica.es/CentOS/6.9/os/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds') Trying other mirror. http://mirror.tedra.es/CentOS/6.9/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.tedra.es/CentOS/6.9/os/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds') Trying other mirror. http://centos.uvigo.es/6.9/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://centos.uvigo.es/6.9/os/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds') Trying other mirror. http://mirror.airenetworks.es/CentOS/6.9/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.airenetworks.es/CentOS/6.9/os/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds') Trying other mirror. http://centos.cadt.com/6.9/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://centos.cadt.com/6.9/os/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds') Trying other mirror. ftp://ftp.cesca.cat/centos/6.9/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on ftp://ftp.cesca.cat/centos/6.9/os/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds') Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again /bin/sh: java: command not found 

然后

我运行这个commad docker build -t cygnus-common 。 它git这个日志

 INFO: Java version <1.7.0> INFO: Apache domain <http://archive.apache.org/dist/> INFO: URL MAVEN <http://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz> INFO: URL FLUME <http://archive.apache.org/dist/flume/1.4.0/apache-flume-1.4.0-bin.tar.gz> INFO: Download and install Maven and Flume... 

但得到超时

这似乎是一个networking问题。 你的主机是否在代理之后?

您可以尝试从ServerFault上的此问题中所述的相同主机手动访问镜像,然后查看会发生什么情况:

 time wget http://sunsite.rediris.es/mirror/CentOS/6.9/os/x86_64/repodata/repomd.xml 

如果您也遇到问题,也许您必须联系您的云提供商。

如果您正在CentOS中运行,如CentOS论坛中的链接所述 ,您可以将http_caching=packages添加到/etc/yum.conf文件并再次运行该命令。

请阅读上面的链接了解更多详情。