Skip to content

Commit

Permalink
Grant createdb to materialize test user (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev authored Sep 4, 2023
1 parent 80a59b4 commit 7b367d7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ services:
image: postgres:15.3-alpine3.18
depends_on:
- materialize
command: sh -c 'echo "Waiting for materialized to start..." && sleep 15 && psql -h materialize -U mz_system -d materialize -p 6877 -c "ALTER SYSTEM SET max_tables = 1000;"'
command: >-
sh -c '
echo "Waiting for materialized to start..." &&
sleep 15 &&
echo "Set Materialize max_tables to 1000" &&
psql -h materialize -U mz_system -d materialize -p 6877 -c "ALTER SYSTEM SET max_tables = 1000;" &&
psql -h materialize -U materialize -d materialize -p 6875 -c "SHOW max_tables;" &&
echo "Grant CREATEDB to materialize user" &&
psql -h materialize -U mz_system -d materialize -p 6877 -c "GRANT CREATEDB ON SYSTEM TO materialize;"'
environment:
- PGPASSWORD=materialize

Expand Down

0 comments on commit 7b367d7

Please sign in to comment.