Browse Source

add docker log options for container worker

master
Sean Johnson 5 months ago
parent
commit
322e006b7b
  1. 4
      app/concourse_worker/defaults.yaml
  2. 6
      app/concourse_worker/init.sls

4
app/concourse_worker/defaults.yaml

@ -3,6 +3,10 @@ @@ -3,6 +3,10 @@
container:
binds: []
env: {}
log_options:
max-buffer-size: 4m
max-file: 3
max-size: 10m
image: concourse/concourse
restart: unless-stopped
shm_size: 64M

6
app/concourse_worker/init.sls

@ -45,6 +45,12 @@ concourse worker container: @@ -45,6 +45,12 @@ concourse worker container:
- privileged: true
- shm_size: {{ container.shm_size }}
- restart_policy: "{{ container.restart }}"
{%- if container.log_options %}
- log_opt:
{%- for key, value in container.log_options.items() %}
- {{ key | yaml_squote }}: {{ value | yaml_dquote }}
{%- endfor %}
{% endif %}
- labels:
- appname=concourse
- concourse.type=worker

Loading…
Cancel
Save