This commit is contained in:
parent
85ce43b796
commit
347a10ebb1
@ -11,10 +11,16 @@ droneci_runner_docker_service_directory: /var/lib/docker/services/droneci
|
|||||||
droneci_runner_docker_socket_path: /var/run/docker.sock
|
droneci_runner_docker_socket_path: /var/run/docker.sock
|
||||||
droneci_runner_docker_service_stopped: False
|
droneci_runner_docker_service_stopped: False
|
||||||
|
|
||||||
# @var droneci_runner_docker_memory_limit:example: $ "512m"
|
# @var droneci_runner_docker_resources: $ "_unset_"
|
||||||
# @var droneci_runner_docker_memory_limit: $ "_unset_"
|
# @var droneci_runner_docker_resources:example: >
|
||||||
# @var droneci_runner_docker_memory_reservation:example: $ "256m"
|
# droneci_runner_docker_resources:
|
||||||
# @var droneci_runner_docker_memory_reservation: $ "_unset_"
|
# limits:
|
||||||
|
# cpus: "0.50"
|
||||||
|
# memory: 50M
|
||||||
|
# reservations:
|
||||||
|
# cpus: "0.25"
|
||||||
|
# memory: 20M
|
||||||
|
# @end
|
||||||
|
|
||||||
# @var droneci_runner_docker_networks:example: >
|
# @var droneci_runner_docker_networks:example: >
|
||||||
# droneci_runner_docker_networks:
|
# droneci_runner_docker_networks:
|
||||||
|
@ -20,11 +20,9 @@ services:
|
|||||||
- DRONE_RPC_HOST={{ droneci_runner_docker_server }}
|
- DRONE_RPC_HOST={{ droneci_runner_docker_server }}
|
||||||
- DRONE_RPC_SECRET={{ droneci_runner_docker_secret }}
|
- DRONE_RPC_SECRET={{ droneci_runner_docker_secret }}
|
||||||
- DRONE_RUNNER_CAPACITY={{ droneci_runner_docker_capacity }}
|
- DRONE_RUNNER_CAPACITY={{ droneci_runner_docker_capacity }}
|
||||||
{% if droneci_runner_docker_memory_limit is defined %}
|
{% if droneci_runner_docker_resources is defined %}
|
||||||
mem_limit: {{ droneci_runner_docker_memory_limit }}
|
resources:
|
||||||
{% endif %}
|
{{ droneci_runner_docker_resources | to_nice_yaml | indent(6) }}
|
||||||
{% if droneci_runner_docker_memory_reservation is defined %}
|
|
||||||
mem_reservation: {{ droneci_runner_docker_memory_reservation }}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if droneci_runner_docker_networks | default([]) %}
|
{% if droneci_runner_docker_networks | default([]) %}
|
||||||
|
Loading…
Reference in New Issue
Block a user