buildbot / buildbot

Python-based continuous integration testing framework; your pull requests are more than welcome!
https://www.buildbot.net
GNU General Public License v2.0
5.24k stars 1.62k forks source link

Unable to start BuildBot Master from Docker Image #7946

Open linghengqian opened 3 weeks ago

linghengqian commented 3 weeks ago
ThomasDevoogdt commented 3 weeks ago

"pollinterval" has been renamed to "pollInterval" See: https://docs.buildbot.net/current/relnotes/3.x.html#deprecations-and-removals

linghengqian commented 3 weeks ago

@ThomasDevoogdt

if [ -z "$BUILDBOT_CONFIG_URL" ] then if [ ! -f "$B/master.cfg" ] then echo "No master.cfg found nor \$BUILDBOT_CONFIG_URL!" echo "Please provide a master.cfg file in $B or provide a \$BUILDBOT_CONFIG_URL variable via -e"


- So I changed the `docker-compose.yml` file.
```yaml
services:
  db:
    image: postgres:16.4-bookworm
    environment:
      POSTGRES_PASSWORD: change_me
      POSTGRES_USER: buildbot
      POSTGRES_DB: buildbot
  buildbot:
    image: buildbot/buildbot-master:v4.0.2
    depends_on:
      - db
    environment:
      BUILDBOT_CONFIG_DIR: config
      BUILDBOT_WORKER_PORT: 9989
      BUILDBOT_WEB_URL: http://localhost:8010/
      BUILDBOT_WEB_PORT: tcp:port=8010
      BUILDBOT_DB_URL: postgresql+psycopg2://buildbot:change_me@db/buildbot
    ports:
      - "8010:8010"
    volumes:
      - ./buildbot-master/master.cfg:/buildbot/master.cfg
  worker:
    image: buildbot/buildbot-worker:v4.0.2
    environment:
      BUILDMASTER: buildbot
      BUILDMASTER_PORT: 9989
      WORKERNAME: example-worker
      WORKERPASS: pass
      WORKER_ENVIRONMENT_BLACKLIST: DOCKER_BUILDBOT* BUILDBOT_ENV_* BUILDBOT_1* WORKER_ENVIRONMENT_BLACKLIST