From 952ca32ec4565ae627e7ffecfaf32db510685b06 Mon Sep 17 00:00:00 2001 From: Alin Voinea Date: Thu, 14 Jun 2018 15:03:10 +0300 Subject: [PATCH] Refs #96176 - logspout - Prepare new release --- .../logcentral-logspout/1/docker-compose.yml | 16 +++++++++++++ .../logcentral-logspout/1/rancher-compose.yml | 23 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 infra-templates/logcentral-logspout/1/docker-compose.yml create mode 100644 infra-templates/logcentral-logspout/1/rancher-compose.yml diff --git a/infra-templates/logcentral-logspout/1/docker-compose.yml b/infra-templates/logcentral-logspout/1/docker-compose.yml new file mode 100644 index 000000000..f895d8c17 --- /dev/null +++ b/infra-templates/logcentral-logspout/1/docker-compose.yml @@ -0,0 +1,16 @@ +logspout: + restart: always + environment: + LOGSPOUT: 'ignore' + ROUTE_URIS: "${route_uri}" + log_driver: '' + labels: + io.rancher.scheduler.global: 'true' + io.rancher.scheduler.affinity:host_label_ne: logspout=ignore + io.rancher.container.hostname_override: container_name + tty: true + log_opt: {} + image: rancher/logspout-logstash:v0.2.0 + volumes: + - /var/run/docker.sock:/var/run/docker.sock + stdin_open: true diff --git a/infra-templates/logcentral-logspout/1/rancher-compose.yml b/infra-templates/logcentral-logspout/1/rancher-compose.yml new file mode 100644 index 000000000..071c371bd --- /dev/null +++ b/infra-templates/logcentral-logspout/1/rancher-compose.yml @@ -0,0 +1,23 @@ +.catalog: + name: Logcentral Logspout + version: 0.2.0-1 + description: | + Logspout is a log router for Docker containers. + questions: + - variable: "route_uri" + label: "Logspout route for logs" + type: "string" + required: true + default: "syslog://logs.apps.eea.europa.eu:1514" + description: | + This will be the target where all logs are sent. + - variable: "format" + label: "Format" + type: "enum" + options: + - "rfc5424" + - "rfc3164" + required: true + default: "rfc5424" + description: | + The Syslog format to use. If not certain, use rfc5424