From 0faffa0bbde3a4752ae712cc2f7e38c01d8cb78c Mon Sep 17 00:00:00 2001 From: sf Date: Sun, 2 Jan 2022 17:13:48 +0100 Subject: [PATCH] initial --- .gitignore | 1 + db.env.dist | 4 ++++ docker-compose.yml | 35 +++++++++++++++++++++++++++++++++++ env.dist | 1 + 4 files changed, 41 insertions(+) create mode 100644 .gitignore create mode 100644 db.env.dist create mode 100644 docker-compose.yml create mode 100644 env.dist diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..93cd5f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +worker.env diff --git a/db.env.dist b/db.env.dist new file mode 100644 index 0000000..debabb7 --- /dev/null +++ b/db.env.dist @@ -0,0 +1,4 @@ +POSTGRES_PASSWORD=buildbot +POSTGRES_USER=buildbot +POSTGRES_DB=buildbot +BUILDBOT_DB_URL=postgresql+psycopg2://{POSTGRES_USER}:{POSTGRES_PASSWORD}@db/{POSTGRES_DB} diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..739ec56 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,35 @@ +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: + - "${MASTER_EXTERNAL_IP}:8010:8010" + + db: + env_file: + - db.env + image: "postgres:9.4" + + worker: + image: "buildbot/buildbot-worker:master" + environment: + BUILDMASTER: buildbot + BUILDMASTER_PORT: 9989 + WORKERNAME: worker + WORKERPASS: pass + WORKER_ENVIRONMENT_BLACKLIST: DOCKER_BUILDBOT* BUILDBOT_ENV_* BUILDBOT_1* WORKER_ENVIRONMENT_BLACKLIST + + links: + - buildbot diff --git a/env.dist b/env.dist new file mode 100644 index 0000000..3a13d04 --- /dev/null +++ b/env.dist @@ -0,0 +1 @@ +MASTER_EXTERNAL_IP=127.0.0.1