Browse Source

concourse_worker: add binds templating

master
Sean Johnson 3 years ago
parent
commit
e94b650e7f
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 9FA15B87469EA850
  1. 5
      app/concourse_worker/defaults.yaml
  2. 3
      app/concourse_worker/init.sls

5
app/concourse_worker/defaults.yaml

@ -1,11 +1,12 @@
---
container:
binds: []
env: {}
image: concourse/concourse
tag: latest
restart: unless-stopped
shm_size: 64M
env: {}
tag: latest
settings:
data_dir: /opt/concourse/data

3
app/concourse_worker/init.sls

@ -48,6 +48,9 @@ concourse worker container:
- binds:
- {{ settings.data_dir }}:/data:ro
- /var/run/docker.sock:/var/run/docker.sock
{%- for bind in container.binds.items() %}
- {{ bind }}
{%- endfor %}
{% if container.env %}
- environment:
{%- for key, value in container.env.items() %}

Loading…
Cancel
Save