From 50444eee3d471964c4d1af921bf368f1ac61c9fd Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 15 Jun 2020 23:10:33 +0000 Subject: [PATCH] commit 7b6db989761a7571b6b2bad441e4984800685b3c Author: Robert Kaussow Date: Tue Jun 16 01:06:52 2020 +0200 move to docker-compose.yml --- index.md | 57 ++++++++++++++++++++++++++++++++------------------------ 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/index.md b/index.md index 9d61050..3393ef7 100644 --- a/index.md +++ b/index.md @@ -11,9 +11,10 @@ Setup Drone CI docker runner * [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_memory_limit](#droneci_runner_docker_memory_limit) + * [droneci_runner_docker_memory_reservation](#droneci_runner_docker_memory_reservation) * [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) @@ -51,13 +52,41 @@ droneci_runner_docker_image: drone/drone-runner-docker:{{ droneci_runner_docker_ }} ``` +### droneci_runner_docker_memory_limit + +#### Default value + +```YAML +droneci_runner_docker_memory_limit: _unset_ +``` + +#### Example usage + +```YAML +droneci_runner_docker_memory_limit: 512m +``` + +### droneci_runner_docker_memory_reservation + +#### Default value + +```YAML +droneci_runner_docker_memory_reservation: _unset_ +``` + +#### Example usage + +```YAML +droneci_runner_docker_memory_reservation: 256m +``` + ### droneci_runner_docker_networks #### Default value ```YAML droneci_runner_docker_networks: - - name: droneci + - name: droneci_droneci external: true ``` @@ -76,27 +105,7 @@ droneci_runner_docker_networks: ```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_droneci ``` ### droneci_runner_docker_secret @@ -120,7 +129,7 @@ droneci_runner_docker_server: droneci #### Default value ```YAML -droneci_runner_docker_service_directory: /var/lib/docker/services/droneci +droneci_runner_docker_service_directory: /var/lib/docker/services/droneci_runner_docker ``` ### droneci_runner_docker_service_stopped