dev-util/drone-runner-docker: Clean up old stuff.
Package-Manager: Portage-3.0.30, Repoman-3.0.3
This commit is contained in:
parent
b5577edb13
commit
75e775a49e
9 changed files with 8 additions and 446 deletions
|
@ -1,19 +0,0 @@
|
|||
# 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"
|
||||
|
||||
# Required string value configures ports to publish for docker: space-separated
|
||||
# list of <hostport>:<containerport> tuples.
|
||||
DOCKER_PUBLISH="3000:3000"
|
||||
|
||||
# Optional string value of extra args passed verbatim to the docker command.
|
||||
DOCKER_DRONE_EXTRA_ARGS=""
|
|
@ -1,23 +0,0 @@
|
|||
[Unit]
|
||||
Description=drone.io 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
|
||||
|
||||
Environment="RUNNER_CONFIG_FILE=/etc/drone-runner-docker/app.ini"
|
||||
|
||||
ExecStart=drone-runner-docker.sh
|
||||
ExecStop=docker container stop drone-runner
|
||||
ExecStopPost=docker container rm drone-runner
|
||||
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,29 +0,0 @@
|
|||
#!/bin/sh
|
||||
# $RUNNER_CONFIG_FILE contains path to the config file
|
||||
|
||||
if [[ -z "${RUNNER_CONFIG_FILE}" ]] ; then
|
||||
echo "RUNNER_CONFIG_FILE not set!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
. "${RUNNER_CONFIG_FILE}"
|
||||
|
||||
docker_args=""
|
||||
|
||||
for var in "${!DRONE_@}" ; do
|
||||
docker_args="${docker_args} --env=${var}=${!var}"
|
||||
done
|
||||
|
||||
for p in ${DOCKER_PUBLISH} ; do
|
||||
docker_args="${docker_args} --publish=${p}"
|
||||
done
|
||||
|
||||
docker_args="${docker_args} ${DOCKER_DRONE_EXTRA_ARGS}"
|
||||
|
||||
docker run \
|
||||
--volume=/run/docker.sock:/var/run/docker.sock \
|
||||
${docker_args} \
|
||||
--restart=always \
|
||||
--detach=false \
|
||||
--name=drone-runner \
|
||||
drone/drone-runner-docker:<VERSION>
|
Loading…
Add table
Add a link
Reference in a new issue