2020-06-15 20:04:00 +00:00
|
|
|
---
|
|
|
|
title: droneci_runner_docker
|
|
|
|
type: docs
|
|
|
|
---
|
|
|
|
|
|
|
|
[![Source Code](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white)](https://gitea.rknet.org/ansible/xoxys.droneci_runner_docker) [![Build Status](https://img.shields.io/drone/build/ansible/xoxys.droneci_runner_docker?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.droneci_runner_docker) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?label=license)](https://gitea.rknet.org/ansible/xoxys.droneci_runner_docker/src/branch/master/LICENSE)
|
|
|
|
|
|
|
|
Setup Drone CI docker runner
|
|
|
|
|
|
|
|
* [Default Variables](#default-variables)
|
2021-12-05 12:23:47 +00:00
|
|
|
* [droneci_drone_runner_labels](#droneci_drone_runner_labels)
|
2020-06-15 20:04:00 +00:00
|
|
|
* [droneci_runner_docker_capacity](#droneci_runner_docker_capacity)
|
|
|
|
* [droneci_runner_docker_container_name](#droneci_runner_docker_container_name)
|
|
|
|
* [droneci_runner_docker_image](#droneci_runner_docker_image)
|
2020-06-15 23:10:33 +00:00
|
|
|
* [droneci_runner_docker_memory_limit](#droneci_runner_docker_memory_limit)
|
|
|
|
* [droneci_runner_docker_memory_reservation](#droneci_runner_docker_memory_reservation)
|
2020-06-15 20:04:00 +00:00
|
|
|
* [droneci_runner_docker_networks](#droneci_runner_docker_networks)
|
|
|
|
* [droneci_runner_docker_networks_applied](#droneci_runner_docker_networks_applied)
|
2020-06-16 20:08:00 +00:00
|
|
|
* [droneci_runner_docker_restart_policy](#droneci_runner_docker_restart_policy)
|
2020-06-15 20:04:00 +00:00
|
|
|
* [droneci_runner_docker_secret](#droneci_runner_docker_secret)
|
|
|
|
* [droneci_runner_docker_server](#droneci_runner_docker_server)
|
|
|
|
* [droneci_runner_docker_service_directory](#droneci_runner_docker_service_directory)
|
|
|
|
* [droneci_runner_docker_service_stopped](#droneci_runner_docker_service_stopped)
|
|
|
|
* [droneci_runner_docker_socket_path](#droneci_runner_docker_socket_path)
|
|
|
|
* [droneci_runner_docker_version](#droneci_runner_docker_version)
|
|
|
|
* [Dependencies](#dependencies)
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## Default Variables
|
|
|
|
|
2021-12-05 12:23:47 +00:00
|
|
|
### droneci_drone_runner_labels
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
droneci_drone_runner_labels: []
|
|
|
|
```
|
|
|
|
|
2020-06-15 20:04:00 +00:00
|
|
|
### droneci_runner_docker_capacity
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
droneci_runner_docker_capacity: 2
|
|
|
|
```
|
|
|
|
|
|
|
|
### droneci_runner_docker_container_name
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
droneci_runner_docker_container_name: droneci_runner_docker
|
|
|
|
```
|
|
|
|
|
|
|
|
### droneci_runner_docker_image
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
droneci_runner_docker_image: drone/drone-runner-docker:{{ droneci_runner_docker_version
|
|
|
|
}}
|
|
|
|
```
|
|
|
|
|
2020-06-15 23:10:33 +00:00
|
|
|
### droneci_runner_docker_memory_limit
|
2020-06-15 20:04:00 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2020-06-15 23:10:33 +00:00
|
|
|
droneci_runner_docker_memory_limit: _unset_
|
2020-06-15 20:04:00 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Example usage
|
|
|
|
|
|
|
|
```YAML
|
2020-06-15 23:10:33 +00:00
|
|
|
droneci_runner_docker_memory_limit: 512m
|
2020-06-15 20:04:00 +00:00
|
|
|
```
|
|
|
|
|
2020-06-15 23:10:33 +00:00
|
|
|
### droneci_runner_docker_memory_reservation
|
2020-06-15 20:04:00 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2020-06-15 23:10:33 +00:00
|
|
|
droneci_runner_docker_memory_reservation: _unset_
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Example usage
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
droneci_runner_docker_memory_reservation: 256m
|
2020-06-15 20:04:00 +00:00
|
|
|
```
|
|
|
|
|
2020-06-15 23:10:33 +00:00
|
|
|
### droneci_runner_docker_networks
|
2020-06-15 22:28:57 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2020-06-15 23:10:33 +00:00
|
|
|
droneci_runner_docker_networks:
|
2020-06-18 14:32:35 +00:00
|
|
|
- name: droneci_default
|
2020-06-15 23:10:33 +00:00
|
|
|
external: true
|
2020-06-15 22:28:57 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Example usage
|
|
|
|
|
|
|
|
```YAML
|
2020-06-15 23:10:33 +00:00
|
|
|
droneci_runner_docker_networks:
|
2020-06-18 14:32:35 +00:00
|
|
|
- name: default
|
2020-06-15 23:10:33 +00:00
|
|
|
# optional network driver, defaults to 'bride'
|
|
|
|
driver: host
|
|
|
|
```
|
|
|
|
|
|
|
|
### droneci_runner_docker_networks_applied
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
droneci_runner_docker_networks_applied:
|
2020-06-18 14:32:35 +00:00
|
|
|
- droneci_default
|
2020-06-15 22:28:57 +00:00
|
|
|
```
|
|
|
|
|
2020-06-16 20:08:00 +00:00
|
|
|
### droneci_runner_docker_restart_policy
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
droneci_runner_docker_restart_policy: always
|
|
|
|
```
|
|
|
|
|
2020-06-15 20:04:00 +00:00
|
|
|
### droneci_runner_docker_secret
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
droneci_runner_docker_secret: myveryownsecret
|
|
|
|
```
|
|
|
|
|
|
|
|
### droneci_runner_docker_server
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
droneci_runner_docker_server: droneci
|
|
|
|
```
|
|
|
|
|
|
|
|
### droneci_runner_docker_service_directory
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2020-06-15 23:10:33 +00:00
|
|
|
droneci_runner_docker_service_directory: /var/lib/docker/services/droneci_runner_docker
|
2020-06-15 20:04:00 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### droneci_runner_docker_service_stopped
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
droneci_runner_docker_service_stopped: false
|
|
|
|
```
|
|
|
|
|
|
|
|
### droneci_runner_docker_socket_path
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
droneci_runner_docker_socket_path: /var/run/docker.sock
|
|
|
|
```
|
|
|
|
|
|
|
|
### droneci_runner_docker_version
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
droneci_runner_docker_version: latest
|
|
|
|
```
|
|
|
|
|
|
|
|
## Dependencies
|
|
|
|
|
|
|
|
None.
|