Skip to content

Latest commit

 

History

History
99 lines (63 loc) · 3 KB

File metadata and controls

99 lines (63 loc) · 3 KB

image

Pre-requisites

  • 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.

Setup

Note: Use this in a non-production Confluent Cloud instance for development purposes only.

Step 1

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

Step 2

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

Step 3

Source the generated file of ENV variables

$ source ./delta_configs/env.delta

Bring up services

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.

All services at once

$ docker-compose up -d

Confluent Schema Registry

If you are not using Confluent Cloud Schema Registry:

$ docker-compose up -d schema-registry

Kafka Connect

$ docker-compose up -d connect

Confluent Control Center

$ docker-compose up -d control-center

KSQL Server

$ docker-compose up -d ksql-server

KSQL CLI

$ docker-compose up -d ksql-cli

Confluent REST Proxy

$ docker-compose up -d rest-proxy