Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 24 additions & 14 deletions .github/compose/ci.buildgrid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@
#
# Spins-up a unnamed and unauthenticated grid:
# - Controller + CAS + AC at http://localhost:50051
# - Ref. + CAS at: http://localhost:50052
#
# BuildStream configuration snippet:
#
# artifacts:
# url: http://localhost:50052
# push: true
# remote-execution:
# execution-service:
# url: http://localhost:50051
Expand All @@ -25,6 +21,26 @@
version: "3.2"

services:
database:
image: registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildgrid-postgres:nightly
environment:
POSTGRES_USER: bgd
POSTGRES_PASSWORD: insecure
POSTGRES_DB: bgd
volumes:
- type: volume
source: db
target: /var/lib/postgresql
networks:
- grid
ports:
- "5432:5432"
healthcheck:
test: ["CMD", "pg_isready", "-U", "bgd"]
interval: 1s
timeout: 5s
retries: 10

controller:
image: registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildgrid:nightly
command: [
Expand All @@ -34,6 +50,9 @@ services:
- 50051:50051
networks:
- grid
depends_on:
database:
condition: service_healthy

bot:
image: registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildbox:nightly
Expand All @@ -49,19 +68,10 @@ services:
networks:
- grid

storage:
image: registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildgrid:nightly
command: [
"bgd", "server", "start", "-v",
"/etc/buildgrid/artifacts.yml"]
ports:
- 50052:50052
networks:
- grid

networks:
grid:
driver: bridge

volumes:
cache:
db:
2 changes: 0 additions & 2 deletions .github/compose/ci.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ services:
command: tox -vvvvv -- --color=yes --remote-execution
environment:
TOXENV: ${CI_TOXENV_MAIN}
ARTIFACT_CACHE_SERVICE: http://localhost:50052
REMOTE_EXECUTION_SERVICE: http://localhost:50051
SOURCE_CACHE_SERVICE: http://localhost:50052

# We need to use host networking mode in order to be able to
# properly resolve services exposed by adjacent containers.
Expand Down
Loading