cgswong/confluent-schema-registry

By cgswong

Updated over 8 years ago

Confluent Platform Schema Registry

Image

10K+

Confluent Platform Schema Registry

This is a highly configurable Dockerized Confluent Platform Schema Registry.

How to use this image

The container can be configured via environment variables where any Schema Registry property can be set after sr_ with underscore instead of period ('.') used. For example:

Environment VariablePropertyDefault
sr_debugdebugtrue
sr_kafkastore_connection_urlkafkastore.connection.urlZOOKEEPER_PORT_2181_TCP_ADDR:ZOOKEEPER_PORT_2181_TCP_PORT
sr_kafkastore_topickafkastore.topic_schemas
sr_schema_registry_zk_namespaceschema.registry.zk.namespaceschema_registry
sr_portport8081

A few sensible values have been set as given above. A basic invocation using a link to a local ZooKeeper instance would be:

docker run --rm --name schema-registry -p 8081:8081 --link zookeeper:zookeeper cgswong/confluent-schema-registry
Using your configuration file

The config directory, /etc/schema-registry, is exposed for mounting to your local host. This facilitates using your own configuration file, schema-registry.properties instead of injecting into the container, while still take advantage of variable substitution. Also, you can download a remote properties file by setting the environment variable sr_cfg_url to the location of the file.

Acknowledgement

This image is a fork of the main ConfluentInc Platform. As I do contribute back you may see some of these features included, however, some may not be included or take longer to be merged. I created this version not only to contribute back to a really good project, but also to learn, and have a version which was more robust (production ready since this is being used as such), with a more timely update cycle (for the time being anyways).

Docker Pull Command

docker pull cgswong/confluent-schema-registry