diff --git a/testing/dbtest/docker/Makefile b/testing/dbtest/docker/Makefile index ea9db518de..93734b9f0a 100644 --- a/testing/dbtest/docker/Makefile +++ b/testing/dbtest/docker/Makefile @@ -36,7 +36,7 @@ database-up: -e POSTGRES_DB=boundary \ -e PGDATA=/pgdata \ --mount type=tmpfs,destination=/pgdata \ - -v "$(CWD)/../../../internal/db/schema/migrations/postgres":/migrations \ + -v "$(CWD)/../../../internal/db/schema/migrations":/migrations \ $(IMAGE_TAG) \ -c 'config_file=/etc/postgresql/postgresql.conf' \ $(PG_OPTS) 1> /dev/null diff --git a/testing/dbtest/docker/init-db.sh b/testing/dbtest/docker/init-db.sh index ae18f8edce..a2512f5727 100755 --- a/testing/dbtest/docker/init-db.sh +++ b/testing/dbtest/docker/init-db.sh @@ -2,43 +2,91 @@ set -e shopt -s globstar +# Create database to use as template psql -v "ON_ERROR_STOP=1" --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" -q <