Coder Social home page Coder Social logo

edwardmlyte / docker-bigtable Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spotify/docker-bigtable

0.0 0.0 0.0 10 KB

A docker container with an in memory implementation of Google Cloud Bigtable

License: Apache License 2.0

Makefile 32.01% Go 50.29% Shell 17.70%

docker-bigtable's Introduction

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
builder.setDataHost("localhost");
builder.setTableAdminHost("localhost");
builder.setPort(8080);
builder.setUsePlaintextNegotiation(true);
builder.setCredentialOptions(CredentialOptions.nullCredential());
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.

Notes

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.