feat(dbtest): Mount DB dumps and create templates
Mount the benchmark dump directory when running the test database and create a new script for creating templates from the dumps. This makes it easy to create pre-populated databases for benchmark tests. Fixes https://hashicorp.atlassian.net/browse/ICU-4040
This commit is contained in:
1 parent
9e424db0a3
commit
5d042c7ec7
6 files changed
+21
No files matched your search
@@ -47,6 +47,7 @@ database-up:
|
||||
-e PGDATA=/pgdata \
|
||||
--mount type=tmpfs,destination=/pgdata \
|
||||
-v "$(CWD)/../../../internal/db/schema/migrations":/migrations \
|
||||
-v "$(CWD)/benchmark_dumps":/benchmark_dumps \
|
||||
$(TEST_IMAGE_TAG) \
|
||||
-c 'config_file=/etc/postgresql/postgresql.conf' \
|
||||
$(PG_OPTS) 1> /dev/null
|
||||
|
||||
Reference in new issue
Block a user