A docker container with an in memory implementation of Google Cloud Bigtable
Go Makefile Shell
Switch branches/tags
Nothing to show
Clone or download
Robert Gruener
Robert Gruener start 0.5-SNAPSHOT
Latest commit ccf8d6b Dec 14, 2016


Bigtable Emulator In Docker

This repository contains everything to run the in memory Go implementation of Bigtable within a docker container for testing applications which use Bigtable.

To run locally use the command:

docker run -it -p 8080:8080 spotify/bigtable-emulator:latest

Using with the Google Cloud Bigtable client

To use with the Cloud Bigtable Client you need to set the Data Host and Table Admin Host to where the docker container is running, the Port to 8080, and to use the Plain Text Negotiation since the in memory implementation does not support SSL encryption. It is also highly recommended to use null credentials, otherwise valid ones are required. An example of using it with BigtableOptions.java:

BigtableOptions.Builder builder = new BigtableOptions.Builder();
// set required connection parameters
// ...
// ...
// Setup connection to docker container running locally
BigtableSession session = new BigtableSession(builder.build());

What Works And What Doesn't

Since this uses an in memory implementation of Bigtable, the Bigtable API is not 100% implemented (for example certain row filter types are not supported). In order to get a full list of that you should look in the source for the in memory implementation. It is highly recommended to check the logs of the docker container if something is not working properly as there will be warning logs whenever an unsupported operation is attempted. An issue has been opended to address this.


Currently this uses the Go implementation because there is not an official Bigtable emulator provided in the google cloud tools. Hopefully once the Bigtable emulator is included within the set of gcloud utlities, this will be changed to use that implementation.

Code of conduct

This project adheres to the Open Code of Conduct. By participating, you are expected to honor this code.