Skip to content

Commit

Permalink
set up satellite spanner instance (#100)
Browse files Browse the repository at this point in the history
Co-authored-by: Jennifer Johnson <[email protected]>
  • Loading branch information
jenlij and Jennifer Johnson authored Jan 9, 2025
1 parent 8c85d80 commit b527808
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/recipe/spanner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ modify:
config:
SPANNER_EMULATOR_HOST: 'spanner:9010'
STORJ_METAINFO_DATABASE_URL: "spanner://projects/test-project/instances/test-instance/databases/metainfo"
STORJ_SATELLITE_DATABASE_URL: "spanner://projects/test-project/instances/test-instance/databases/satellite"
2 changes: 1 addition & 1 deletion pkg/recipe/startspanner.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash
set -xem
echo "Starting Spanner dev container"

gcloud emulators spanner start --host-port=0.0.0.0:9010&
gcloud config set disable_prompts true
gcloud config configurations create emulator
Expand All @@ -13,5 +12,6 @@ gcloud spanner instances create "${INSTANCE_NAME}" --config=emulator-config --de
#TODO: find a more flexible way to create the databases
gcloud spanner databases create master --instance="${INSTANCE_NAME}"
gcloud spanner databases create metainfo --instance="${INSTANCE_NAME}"
gcloud spanner databases create satellite --instance="${INSTANCE_NAME}"

fg %1

0 comments on commit b527808

Please sign in to comment.