当试图用drone.io重build一个node.js图像时出现ssh问题

我只是在预装了docker的AWS服务器内部安装了无人机。 我已经configuration了无人机和链接到我的github应用程序。 一切工作正常。

最后,我在github中创build了一个私有存储库,并且想要使用无人机来构build图像。 这个存储库是一个node.js应用程序uisng mongodb,redis,rabbitmq,并且在存储库的顶部我包含了yml

image: bradrydzewski/node:0.10 env: // no idea what to configure ?? script: // what kind of script I should put here, bash script to build the image in aws ?? services: - mongodb - rabbitmq - redis notify: email: recipients: - lunask@gmail.com 

在这个XML中,我不知道如何configurationenv和脚本。 我应该添加什么来启用这个简单的node.js应用程序。 这些脚本是用来configuration自定义的docker镜像吗?

所以我只是重复使用无人机组的官方图像

 docker pull bradrydzewski/ubuntu docker pull bradrydzewski/base # node images docker pull bradrydzewski/node:0.10 # image node0.10 

所有这些,所以我提交给我的github,然后无人机收到此提交通知,并重build此应用程序的图像。

但在重build的过程中,popup一个错误

 Now using node v0.10.22 $ git clone --depth=50 --recursive --branch=master git@github.com:helxsz/food.git /var/cache/drone/src/github.com/helxsz/food Cloning into '/var/cache/drone/src/github.com/helxsz/food'... ssh: Could not resolve hostname github.com: Temporary failure in name resolution fatal: The remote end hung up unexpectedly 

不知道问题是什么问题PS我已经添加了从无人机发送到GitHub仓库的SSH

这是否有帮助: http : //dannytsang.co.uk/docker-on-digitalocean-cannot-resolve-hostnames/ ? docker显然不能使用IPv6名字服务器parsing主机名

对我来说有效的是在/etc/resolv.conf评论IPv6域名服务器:

 # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND — YOUR CHANGES WILL BE OVERWRITTEN #nameserver 2001:4860:4860::8844 #nameserver 2001:4860:4860::8888 nameserver 209.244.0.3 

(然后seupt dhcp使用非IPv6名称服务器)