spotify / docker-bigtable

A docker container with an in memory implementation of Google Cloud Bigtable
Apache License 2.0
72 stars 10 forks source link

Column families and other small improvements #5

Closed julienatshopify closed 6 years ago

julienatshopify commented 7 years ago

Problem

This docker image is useful for integration tests. However, the first thing every test must do is create the necessary tables and column families. It would be very convenient to be able to specify which tables and column families are necessary at startup, so no special build or test logic is required.

Solution

Add an optional -cf flag allowing to specify which tables and column families to be created at startup.

Result

The user can just specify what needs to be created at startup:

docker run -d -p 8080:8080 spotify/bigtable-emulator  -cf dev.records.data,dev.records.meta

This would create data and meta column families in the records new table in the dev instance.

This PR is also adding small improvements:

@rgruener

julienatshopify commented 6 years ago

It seems there is no interest.