Browse Source

fecking log_driver

master
Sean Johnson 5 months ago
parent
commit
b02978dc4e
  1. 2
      app/concourse_worker/defaults.yaml
  2. 1
      app/concourse_worker/init.sls
  3. 2
      app/oauth2_proxy/defaults.yaml
  4. 2
      app/oauth2_proxy/service.sls

2
app/concourse_worker/defaults.yaml

@ -3,8 +3,8 @@ @@ -3,8 +3,8 @@
container:
binds: []
env: {}
log_driver: json-file
log_options:
max-buffer-size: 4m
max-file: 3
max-size: 10m
image: concourse/concourse

1
app/concourse_worker/init.sls

@ -45,6 +45,7 @@ concourse worker container: @@ -45,6 +45,7 @@ concourse worker container:
- privileged: true
- shm_size: {{ container.shm_size }}
- restart_policy: "{{ container.restart }}"
- log_driver: {{ container.log_driver|yaml_squote }}
{%- if container.log_options %}
- log_opt:
{%- for key, value in container.log_options.items() %}

2
app/oauth2_proxy/defaults.yaml

@ -3,8 +3,8 @@ @@ -3,8 +3,8 @@
container:
binds: []
env: {}
log_driver: json-file
log_options:
driver: json-file
max-file: 3
max-size: 10m
image: quay.io/oauth2-proxy/oauth2-proxy

2
app/oauth2_proxy/service.sls

@ -19,7 +19,7 @@ oauth2-proxy container: @@ -19,7 +19,7 @@ oauth2-proxy container:
- privileged: false
- shm_size: {{ container.shm_size }}
- restart_policy: "{{ container.restart }}"
- log_driver: {{ container.get("log_driver", "json-file")|yaml_squote }}
- log_driver: {{ container.log_driver|yaml_squote }}
{%- if container.log_options %}
- log_opt:
{%- for key, value in container.log_options.items() %}

Loading…
Cancel
Save