Feat: Janitor add debug and loop options

This commit is contained in:
Raul Sanchez 2017-07-10 13:35:19 +02:00
parent 4bf084090e
commit ccec08fd26
2 changed files with 20 additions and 2 deletions

View File

@ -6,8 +6,8 @@ cleanup:
KEEP_IMAGES: "${KEEP}"
KEEP_CONTAINERS: "${KEEPC}"
KEEP_CONTAINERS_NAMED: "${KEEPCN}"
LOOP: "true"
DEBUG: "0"
LOOP: "${LOOP}"
DEBUG: "${DEBUG}"
labels:
io.rancher.scheduler.global: "true"
io.rancher.scheduler.affinity:host_label_ne: "${EXCLUDE_LABEL}"

View File

@ -34,3 +34,21 @@
default: "**None**"
required: false
type: "string"
- variable: "DEBUG"
label: "Enable more debugging output on pattern matches"
description: "Read https://github.com/meltwater/docker-cleanup#environment-variables"
required: true
default: 0
type: "enum"
options:
- 0
- 1
- variable: "LOOP"
label: "Ability to do non-looped cleanups, run it once and exit. Defaults to yes to run it forever in loops."
description: "Read https://github.com/meltwater/docker-cleanup#environment-variables"
required: true
default: true
type: "enum"
options:
- false
- true