From a5bc170e7a5e25d2f1e28a039c820958cd6e6777 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sun, 22 Aug 2021 17:47:54 +0200 Subject: [PATCH] Add initial runner configuration --- .env.sample | 4 ++++ .gitignore | 1 + docker-compose.yml | 17 +++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 .env.sample create mode 100644 .gitignore create mode 100644 docker-compose.yml diff --git a/.env.sample b/.env.sample new file mode 100644 index 0000000..80ea296 --- /dev/null +++ b/.env.sample @@ -0,0 +1,4 @@ +RPC_PROTO=https +RPC_HOST=drone.halia.dev +RPC_SECRET= +RUNNER_CAPACITY=1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1679b82 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +services: + drone-runner: + container_name: drone-runner + image: drone/drone-runner-docker:1 + environment: + - DRONE_RPC_PROTO={{RPC_PROTO}} + - DRONE_RPC_HOST={{RPC_HOST}} + - DRONE_RPC_SECRET={{RPC_SECRET}} + - DRONE_RUNNER_CAPACITY={{RUNNER_CAPACITY}} + - DRONE_RUNNER_NAME=${HOSTNAME} + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - /opt/services:/opt/services + restart: unless-stopped + ports: + - 3030:3000 +