https://github.com/roryq/spanner-emulator
Docker image that wraps the official Google Cloud Spanner Emulator image which creates an instance/database on startup
https://github.com/roryq/spanner-emulator
cloud-spanner spanner
Last synced: 9 months ago
JSON representation
Docker image that wraps the official Google Cloud Spanner Emulator image which creates an instance/database on startup
- Host: GitHub
- URL: https://github.com/roryq/spanner-emulator
- Owner: RoryQ
- Created: 2020-07-14T10:14:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-24T06:10:23.000Z (10 months ago)
- Last Synced: 2025-03-26T15:42:15.515Z (10 months ago)
- Topics: cloud-spanner, spanner
- Language: Go
- Homepage:
- Size: 104 KB
- Stars: 9
- Watchers: 1
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Google Cloud Spanner Emulator
This repository wraps the official
[Google Cloud Spanner Emulator](https://github.com/GoogleCloudPlatform/cloud-spanner-emulator)
with a convenience function to create an spanner instance on startup.
## Usage
Set the `SPANNER_DATABASE_ID`, `SPANNER_INSTANCE_ID` and `SPANNER_PROJECT_ID` environment variables when running the image.
You can omit the database id if you just need an instance.
```sh
docker run --env SPANNER_DATABASE_ID=db \
--env SPANNER_INSTANCE_ID=inst \
--env SPANNER_PROJECT_ID=proj \
-p 9010:9010 -p 9020:9020 \
roryq/spanner-emulator:latest
```
---
Thanks to [jacksonjesse/pubsub-emulator](https://github.com/jacksonjesse/pubsub-emulator) for the idea.