我只是在预装了 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仓库