- Docker version 17.06.1-ce
- Docker Compose version 1.14.0 with Docker Compose file format 2.1
- You must have access to a Confluent Cloud cluster
- Create a local file (e.g. at
$HOME/.confluent/java.config
) with configuration parameters to connect to your Confluent Cloud Kafka cluster. Follow these detailed instructions to properly create this file.
Note: Use this in a non-production Confluent Cloud instance for development purposes only.
By default, the demo uses Confluent Schema Registry running in a local Docker container. If you prefer to use Confluent Cloud Schema Registry instead, you need to first set it up:
a. Enable Confluent Cloud Schema Registry prior to running the demo
b. Validate your credentials to Confluent Cloud Schema Registry
$ curl -u <SR API KEY>:<SR API SECRET> https://<SR ENDPOINT>/subjects
Generate a file of ENV variables used by Docker to set the bootstrap servers and security configuration. (See documentation for more information on using this script.)
a. If you want to use Confluent Schema Registry running in a local Docker container:
$ ../ccloud/ccloud-generate-cp-configs.sh $HOME/.confluent/java.config schema_registry_docker.config
b. If you want to use Confluent Cloud Schema Registry:
$ ../ccloud/ccloud-generate-cp-configs.sh $HOME/.confluent/java.config
Source the generated file of ENV variables
$ source ./delta_configs/env.delta
Make sure you completed the steps in the Setup section above before proceeding.
You may bring up all services in the Docker Compose file at once or individually.
$ docker-compose up -d
If you are not using Confluent Cloud Schema Registry:
$ docker-compose up -d schema-registry
$ docker-compose up -d connect
$ docker-compose up -d control-center
$ docker-compose up -d ksql-server
$ docker-compose up -d ksql-cli
$ docker-compose up -d rest-proxy