Skip to content

Commit ee42a98

Browse files
committed
Add comment about db setup
1 parent 1c95584 commit ee42a98

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ db-up: db-up-dev db-up-test redis-up-dev
104104
db-up-dev:
105105
docker run --name spi_dev -e POSTGRES_DB=spi_dev -e POSTGRES_USER=spi_dev -e POSTGRES_PASSWORD=xxx -p 6432:5432 -d postgres:16-alpine
106106

107+
# NB: It is not required to bring up the test databases via this make target. The test runner will spawn databases
108+
# automatically. This can be configured via the environment variable:
109+
# DATABASEPOOL_SIZE
110+
# A good default for this is 8. Higher values don't improve performance much. If unset, this defaults to 4.
111+
# By setting the optional variable
112+
# DATABASEPOOL_TEARDOWN
113+
# the database containers will be removed after the test run completes. Default is `false`.
107114
db-up-test:
108115
./scripts/start-test-dbs.sh
109116

0 commit comments

Comments
 (0)