【发布时间】:2019-08-29 12:16:23
【问题描述】:
用于 buildbot 的 official docker 容器的文档要求 BUILDBOT_CONFIG_URL 环境变量指向可通过 HTTP 访问的包含 master.cfg 文件的 .tar.gz 文件。
- 如果
master.cfg文件不是单个文件而是导入其他文件(如private.py文件),这应该如何工作? - 是否也可以使用物理配置文件配置 docker 容器?
version: '2'
services:
buildbot:
image: buildbot/buildbot-master:master
env_file:
- db.env
environment:
- BUILDBOT_CONFIG_DIR=config
- BUILDBOT_CONFIG_URL=https://github.com/buildbot/buildbot-docker-example-config/archive/master.tar.gz
- BUILDBOT_WORKER_PORT=9989
- BUILDBOT_WEB_URL=http://localhost:8010/
- BUILDBOT_WEB_PORT=tcp:port=8010
links:
- db
depends_on:
- db
ports:
- "8010:8010"
db:
env_file:
- db.env
image: "postgres:9.4"
expose:
- 5432
【问题讨论】: