On my test bench, Drone cannot reach the Agent, Build is constantly in Pending status.
docker-compose.yaml:
version: "3"
networks:
drone:
services:
drone:
image: drone/drone:1.0.0-rc.5
container_name: drone
ports:
- 80:80
- 443:443
volumes:
- /var/lib/drone:/data
environment:
- DRONE_GIT_ALWAYS_AUTH=false
- DRONE_GITEA_SERVER=${DRONE_GITEA_SERVER}
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_SERVER_HOST=${DRONE_SERVER_HOST}
- DRONE_SERVER_PROTO=${DRONE_SERVER_PROTO}
- DRONE_TLS_AUTOCERT=false
- DRONE_LOGS_DEBUG=true
networks:
- drone
agent:
image: drone/agent:1.0.0-rc.5
container_name: agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_RPC_SERVER=${DRONE_RPC_SERVER}
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_RUNNER_CAPACITY=2
- DRONE_RUNNER_NAME=agent
- DRONE_LOGS_DEBUG=true
networks:
- drone
.drone.yml
kind: pipeline
name: default
platform:
os: linux
arch: amd64
steps:
- name: run-hello-world
image: alpine
commands:
- echo Test
node:
instance: agent