Make log size adjustable

This commit is contained in:
Josh Reichardt 2016-11-28 17:16:46 -08:00
parent 23d9e32225
commit 2b0eab6b19
2 changed files with 7 additions and 1 deletions

View File

@ -9,7 +9,7 @@ sysdig-agent:
TAGS: "${SDC_TAGS}" TAGS: "${SDC_TAGS}"
ADDITIONAL_CONF: "${SDC_ADDITIONAL_CONF}" ADDITIONAL_CONF: "${SDC_ADDITIONAL_CONF}"
log_opt: log_opt:
max-size: 100mb max-size: ${log_size}
volumes: volumes:
- /var/run/docker.sock:/host/var/run/docker.sock - /var/run/docker.sock:/host/var/run/docker.sock
- /dev:/host/dev - /dev:/host/dev

View File

@ -32,3 +32,9 @@
description: "Content must be valid yaml code, use the escape \n parameter for new lines and adhere to proper indent requirements." description: "Content must be valid yaml code, use the escape \n parameter for new lines and adhere to proper indent requirements."
type: "string" type: "string"
required: false required: false
- variable: "log_size"
label: "Max log size"
description: "Max log size"
type: "string"
default: 100mb
required: true