我在同一个实例上运行 Drone Server 和 Drone Agent,我正在尝试连接实例的私有 ip。
如果我用端口卷曲 ip,我会得到一个正确的 html 页面。但是在无人机代理日志中,我不断得到这个
drone-agent_1 | INFO: 2017/10/03 14:02:37 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF.
由于它将在同一个实例上,它应该可以工作,并且还应该为 grpc 配置无人机服务器。2 Docker compose文件,一个用于代理,一个用于服务器
version: '2'
services:
drone-agent:
image: drone/agent:0.8
command: agent
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_SERVER=172.30.1.169:9456
- DRONE_SECRET=secret
Docker 编写服务器
版本:'2'
services:
drone-server:
image: drone/drone:0.8
ports:
- 9456:8000
- 8502:9000
volumes:
- /var/lib/drone:/var/lib/drone/
restart: always
environment:
- DRONE_OPEN=false
- DRONE_HOST=https://subdomain.somehost.com:9876/
- DRONE_BITBUCKET=true
- DRONE_BITBUCKET_CLIENT=secretc
- DRONE_BITBUCKET_SECRET=secretb
- DRONE_SECRET=secret
- DRONE_ADMIN=user1