Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add materialize bootstrap role #36

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
command:
- --availability-zone=test1
- --availability-zone=test2
- --bootstrap-role=materialize
ports:
- 6875:6875
- 6877:6877
Expand All @@ -28,9 +29,8 @@ services:
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;"'
psql -h materialize -U materialize -d materialize -p 6875 -c "SHOW max_tables;"
'
environment:
- PGPASSWORD=materialize

Expand Down