2

我只是在预装了 docker 的 AWS 服务器中安装了无人机。我已经配置了无人机并链接到我的 github 应用程序。一切正常。

最后在github上做了一个私有仓库,想用drone搭建镜像。这个存储库是一个 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

在这个 yml 中,我不知道如何配置环境和脚本。我应该添加什么来启用这个简单的 node.js 应用程序。这些脚本是否用于配置自定义 docker 映像?

所以我只是重用了无人机组的官方图片

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

毕竟这些,所以我提交到我的 github,然后无人机收到这个提交通知,并为这个应用程序重建图像。

但是在重建的过程中,弹出了一个错误

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我已经添加了从drone发来的ssh到github仓库

4

1 回答 1

0

这有帮助吗: http: //dannytsang.co.uk/docker-on-digitalocean-cannot-resolve-hostnames/?显然 docker 无法使用 IPv6 名称服务器解析主机名

对我有用的是在以下位置评论 IPv6 名称服务器/etc/resolv.conf

# 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 名称服务器)

于 2014-10-02T13:20:00.337 回答