Skip to content

Commit e5fc2f5

Browse files
committed
.github/compose/ci.buildgrid.yml: Switch to PostgreSQL
SQLite support is deprecated in BuildGrid and the default configuration now requires PostgreSQL instead.
1 parent c2c8b23 commit e5fc2f5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/compose/ci.buildgrid.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,26 @@
2121
version: "3.2"
2222

2323
services:
24+
database:
25+
image: registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildgrid-postgres:nightly
26+
environment:
27+
POSTGRES_USER: bgd
28+
POSTGRES_PASSWORD: insecure
29+
POSTGRES_DB: bgd
30+
volumes:
31+
- type: volume
32+
source: db
33+
target: /var/lib/postgresql
34+
networks:
35+
- grid
36+
ports:
37+
- "5432:5432"
38+
healthcheck:
39+
test: ["CMD", "pg_isready", "-U", "bgd"]
40+
interval: 1s
41+
timeout: 5s
42+
retries: 10
43+
2444
controller:
2545
image: registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildgrid:nightly
2646
command: [
@@ -30,6 +50,9 @@ services:
3050
- 50051:50051
3151
networks:
3252
- grid
53+
depends_on:
54+
database:
55+
condition: service_healthy
3356

3457
bot:
3558
image: registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildbox:nightly
@@ -51,3 +74,4 @@ networks:
5174

5275
volumes:
5376
cache:
77+
db:

0 commit comments

Comments
 (0)