Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 1.46 KB

README.md

File metadata and controls

44 lines (37 loc) · 1.46 KB

drone-runner-docker

GitHub last commit GitHub Workflow Status GitHub license

Multi-arch version of runner-docker from drone-runners.

How to use it

Source: https://docs.drone.io/runner/docker/installation/linux/

Standalone

docker run --detach \
  --volume=/var/run/docker.sock:/var/run/docker.sock \
  --env=DRONE_RPC_PROTO=https \
  --env=DRONE_RPC_HOST=drone.company.com \
  --env=DRONE_RPC_SECRET=super-duper-secret \
  --env=DRONE_RUNNER_CAPACITY=2 \
  --env=DRONE_RUNNER_NAME=my-docker-runner \
  --publish=3000:3000 \
  --restart=always \
  --name=runner \
  simaofsilva/drone-runner-docker:latest

Docker-compose

drone-runner-docker:
    image: simaofsilva/drone-runner-docker:latest
    restart: unless-stopped
    environment:
        - DRONE_RPC_HOST=drone.company.com
        - DRONE_RPC_PROTO=https
        - DRONE_RPC_SECRET=super-duper-secret
    ports:
        - "3000:3000"
    volumes:
        - /var/run/docker.sock:/var/run/docker.sock
    depends_on:
        - drone