Skip to content

Docker image that wraps the official Google Cloud Spanner Emulator image which creates an instance/database on startup

Notifications You must be signed in to change notification settings

RoryQ/spanner-emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Cloud Spanner Emulator

This repository wraps the official Google Cloud Spanner Emulator with a convenience function to create a 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.

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 for the idea.

About

Docker image that wraps the official Google Cloud Spanner Emulator image which creates an instance/database on startup

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 6