f7ba1bd6c2
We don't want to run it as a daemon now that we're passing logging config to nodepool. Pass -f - since that's what the Dockerfile does. Change-Id: I87b4210ee7e5a622a34944c6345008082e75145b
32 lines
1.0 KiB
Django/Jinja
32 lines
1.0 KiB
Django/Jinja
version: '2'
|
|
services:
|
|
nodepool-builder:
|
|
image: docker.io/zuul/nodepool-builder:{{ nodepool_builder_container_tag|default('latest') }}
|
|
user: nodepool
|
|
network_mode: host
|
|
restart: always
|
|
command: nodepool-builder -f -c /etc/nodepool/nodepool.yaml -l /etc/nodepool/builder-logging.conf
|
|
|
|
privileged: true
|
|
|
|
environment:
|
|
- DEBUG=1
|
|
- STATSD_HOST=graphite.opendev.org
|
|
- STATSD_PORT=8125
|
|
|
|
volumes:
|
|
# nodepool config
|
|
- /etc/nodepool:/etc/nodepool:ro
|
|
# openstacksdk config
|
|
- /etc/openstack:/etc/openstack:ro
|
|
# project-config
|
|
- /opt/project-config:/opt/project-config:ro
|
|
# dib temporary storage; see config in project-config
|
|
- /opt/dib_tmp:/opt/dib_tmp:rw
|
|
# dib cache; see config in project-config
|
|
- /opt/dib_cache:/opt/dib_cache:rw
|
|
# dib image output; see config in project-config
|
|
- /opt/nodepool_dib:/opt/nodepool_dib:rw
|
|
# logs (builder + dib build logs under /build)
|
|
- /var/log/nodepool:/var/log/nodepool:rw
|