xoxys.droneci_runner_docker/index.md

153 lines
3.4 KiB
Markdown
Raw Normal View History

---
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)
* [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)
* [droneci_runner_docker_networks](#droneci_runner_docker_networks)
* [droneci_runner_docker_networks_applied](#droneci_runner_docker_networks_applied)
* [droneci_runner_docker_resources](#droneci_runner_docker_resources)
* [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
### 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
}}
```
### droneci_runner_docker_networks
#### Default value
```YAML
droneci_runner_docker_networks:
- name: droneci
external: true
```
#### Example usage
```YAML
droneci_runner_docker_networks:
- name: droneci
# optional network driver, defaults to 'bride'
driver: host
```
### droneci_runner_docker_networks_applied
#### Default value
```YAML
droneci_runner_docker_networks_applied:
- droneci
```
### droneci_runner_docker_resources
#### Default value
```YAML
droneci_runner_docker_resources: _unset_
```
#### Example usage
```YAML
droneci_runner_docker_resources:
limits:
cpus: "0.50"
memory: 50M
reservations:
cpus: "0.25"
memory: 20M
```
### 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
droneci_runner_docker_service_directory: /var/lib/docker/services/droneci
```
### 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.