storj/docker-compose.tests.yaml
Mya 4b61cc9e9c Makefile: update test target to support a local execution workflow
This change attempts to run tests as close to CI as possible. It
introduces a docker-compose file that deploys some supporting
services. While this change makes it possible to run tests locally,
it does not address the core time it takes to run tests end to end.

make test/postgres  1417.87s user 263.38s system 291% cpu 9:37.73 total

Resolves https://github.com/storj/dev-enablement/issues/10

Change-Id: I4d9adc125992c1b1c133e8fe108384fa3c66ff7a
2022-05-25 16:47:06 +00:00

45 lines
958 B
YAML

# Support services used by tests
version: "3.4"
services:
postgres:
hostname: postgres
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
crdb1:
hostname: crdb1
command: [ "start-single-node", "--insecure" ]
image: cockroachdb/cockroach
ports:
- "26256:26257"
crdb2:
hostname: crdb2
command: [ "start-single-node", "--insecure" ]
image: cockroachdb/cockroach
ports:
- "26257:26257"
crdb3:
hostname: crdb3
command: [ "start-single-node", "--insecure" ]
image: cockroachdb/cockroach
ports:
- "26258:26257"
crdb4:
hostname: crdb4
command: [ "start-single-node", "--insecure" ]
image: cockroachdb/cockroach
ports:
- "26259:26257"
crdb5:
hostname: crdb5
command: [ "start-single-node", "--insecure" ]
image: cockroachdb/cockroach
ports:
- "26260:26257"