dev-util/drone-runner-docker: Add ebuild for version 1.8.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

Package-Manager: Portage-3.0.30, Repoman-3.0.3
This commit is contained in:
Manuel Friedli 2022-04-30 23:12:32 +02:00
parent e9692d2c98
commit 078e0946e5
6 changed files with 100 additions and 1 deletions

View file

@ -0,0 +1,15 @@
# Drone docker runner configuration file. See
# https://docs.drone.io/runner/docker/configuration/reference/ for a complete
# list of configuration options.
# provides the hostname (and optional port) of your Drone server. The runner connects to the server at the host address to receive pipelines for execution.
DRONE_RPC_HOST="drone.example.com"
# provides the protocol used to connect to your Drone server. The value must be either http or https.
DRONE_RPC_PROTO="https"
# provides the shared secret used to authenticate with your Drone server. This must match the secret defined in your Drone server configuration.
DRONE_RPC_SECRET="your-secret-goes-here"
# Optional string value configures HTTP port to bind to. default: :3000
DRONE_HTTP_BIND="localhost:3030"

View file

@ -0,0 +1,14 @@
#!/sbin/openrc-run
# Copyright 2016-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="Drone CI Docker Runner"
pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
user=${user:-drone-runner-docker}
group=${group:-drone-runner-docker}
command="/usr/bin/drone-runner-docker daemon"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group} \
--stdout /var/log/${SVCNAME}/${SVCNAME}.log \
--stderr /var/log/${SVCNAME}/${SVCNAME}.log"

View file

@ -0,0 +1,20 @@
[Unit]
Description=Drone CI Docker Runner
Documentation=https://docs.drone.io/
After=docker.service
After=network.target
Requires=docker.service
Requires=network.target
[Service]
User=drone-runner-docker
Group=drone-runner-docker
EnvironmentFile=/etc/conf.d/drone-runner-docker
ExecStart=/usr/bin/drone-runner-docker daemon
Restart=on-failure
[Install]
WantedBy=multi-user.target