summaryrefslogtreecommitdiffstats
path: root/Drone/drone-runner-exec
diff options
context:
space:
mode:
authorGeorg2021-08-12 21:37:51 +0200
committerGeorg2021-08-12 21:37:51 +0200
commit58f01ad6ef5cbfb60c7b867c48ba4f49a201a363 (patch)
treebc3a2644237040b81778e556ce000838941bcc6a /Drone/drone-runner-exec
parent08aa81a2d48ec93f6d3d581857ba6bcdc079bd43 (diff)
downloadgit-58f01ad6ef5cbfb60c7b867c48ba4f49a201a363.tar.gz
git-58f01ad6ef5cbfb60c7b867c48ba4f49a201a363.tar.bz2
git-58f01ad6ef5cbfb60c7b867c48ba4f49a201a363.zip
Init
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'Drone/drone-runner-exec')
-rw-r--r--Drone/drone-runner-exec/config13
-rw-r--r--Drone/drone-runner-exec/drone-runner-exec.service14
2 files changed, 27 insertions, 0 deletions
diff --git a/Drone/drone-runner-exec/config b/Drone/drone-runner-exec/config
new file mode 100644
index 0000000..e352c93
--- /dev/null
+++ b/Drone/drone-runner-exec/config
@@ -0,0 +1,13 @@
+DRONE_RUNNER_NAME=$RUNNERHOST
+DRONE_HTTP_BIND=127.0.0.3:3000
+DRONE_RPC_PROTO=https
+DRONE_RPC_HOST=$RUNNERINTRANET
+DRONE_RPC_SECRET=$RPCSEC
+DRONE_UI_USERNAME=$RUNNERUSER
+DRONE_UI_PASSWORD=$RUNNERPASS
+DRONE_UI_REALM=DroneRealm
+DRONE_LOG_FILE=/var/log/drone-runner-exec/log.txt
+DRONE_LOG_FILE_MAX_SIZE=10
+DRONE_LOG_FILE_MAX_AGE=30
+DRONE_LOG_FILE_MAX_BACKUPS=7
+DRONE_DEBUG=true
diff --git a/Drone/drone-runner-exec/drone-runner-exec.service b/Drone/drone-runner-exec/drone-runner-exec.service
new file mode 100644
index 0000000..8c8607f
--- /dev/null
+++ b/Drone/drone-runner-exec/drone-runner-exec.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Drone Exec Runner
+
+[Service]
+User=drone
+Group=drone
+StartLimitInterval=5
+StartLimitBurst=10
+ExecStart=/opt/drone/bin/drone-runner-exec "service" "run" "--config" "/opt/drone/.drone-runner-exec/config"
+Restart=always
+RestartSec=120
+
+[Install]
+WantedBy=multi-user.target