roryq / spanner-emulator Goto Github PK
View Code? Open in Web Editor NEWDocker image that wraps the official Google Cloud Spanner Emulator image which creates an instance/database on startup
Docker image that wraps the official Google Cloud Spanner Emulator image which creates an instance/database on startup
Hello
I am getting an error with the version 1.4.6. Am I missing something?
mandhara@X447T6RJFM ~ % docker run --env SPANNER_DATABASE_ID=db \
--env SPANNER_INSTANCE_ID=inst \
--env SPANNER_PROJECT_ID=proj \
-p 9010:9010 -p 9020:9020 \
hub.artifactory.gcp.anz/roryq/spanner-emulator:1.4.6
exec ./spanner-emulator: no such file or directory
Sanity check the emulator is running
Running the following command
docker run --env SPANNER_DATABASE_ID=test-database --env SPANNER_INSTANCE_ID=test-instance --env SPANNER_PROJECT_ID=test-project roryq/spanner-emulator:latest
I get the following output:
2022/01/12 21:17:37 gateway.go:140: Cloud Spanner emulator running.
2022/01/12 21:17:37 gateway.go:141: REST server listening at 0.0.0.0:9020
2022/01/12 21:17:37 gateway.go:142: gRPC server listening at 0.0.0.0:9010
2022/01/12 21:17:37 instance created
2022/01/12 21:17:37 attempting to create database test-database
2022/01/12 21:17:37 database created
Everything seems fine but I can't reach any request to emulator server.
curl --request GET -L "localhost:9020/v1/projects/project-test/instances"
curl: (7) Failed to connect to localhost port 9020: Refused connection
Running my application tests the same problem happens. In this case, the reported error is the following:
UNAVAILABLE: The connection string 'cloudspanner://localhost:9010/projects/test-project/instances/test-instance/databases/test-database;usePlainText=true' contains host 'localhost:9010', but no running emulator or other server could be found at that address.
Please check the connection string and/or that the emulator is running.
Any tip of what is happening here?
The 1.5.0 release gets stuck in a restart loop on container initialization. The only log it outputs is "Attempting to create instance ".
Downgrading to 1.4.8 resolved the issue.
By the way, thanks for this wonderfully useful Docker image!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.