-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified task descriptions for clarity. Upgraded dependencies includi…
…ng gradle-analytics. Using docker-compose now for integration testing
- Loading branch information
1 parent
f42e029
commit eac29c0
Showing
7 changed files
with
160 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
--- | ||
version: '2' | ||
services: | ||
zookeeper: | ||
container_name: zookeeper | ||
image: confluentinc/cp-zookeeper:5.1.0 | ||
environment: | ||
ZOOKEEPER_CLIENT_PORT: 2181 | ||
ZOOKEEPER_TICK_TIME: 2000 | ||
|
||
kafka: | ||
container_name: kafka | ||
image: confluentinc/cp-enterprise-kafka:5.1.0 | ||
depends_on: | ||
- zookeeper | ||
#ports: | ||
# This would expose 9092 for external connections to the broker | ||
# Use kafka:29092 for connections internal on the docker network | ||
# See https://rmoff.net/2018/08/02/kafka-listeners-explained/ for details | ||
# - 9092:9092 | ||
environment: | ||
KAFKA_BROKER_ID: 1 | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT | ||
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT | ||
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092 | ||
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true" | ||
KAFKA_METRIC_REPORTERS: io.confluent.metrics.reporter.ConfluentMetricsReporter | ||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | ||
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 100 | ||
CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: kafka:29092 | ||
CONFLUENT_METRICS_REPORTER_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1 | ||
CONFLUENT_METRICS_ENABLE: 'true' | ||
CONFLUENT_SUPPORT_CUSTOMER_ID: 'anonymous' | ||
|
||
schema-registry: | ||
container_name: schema-registry | ||
image: confluentinc/cp-schema-registry:5.1.0 | ||
depends_on: | ||
- zookeeper | ||
- kafka | ||
environment: | ||
SCHEMA_REGISTRY_HOST_NAME: schema-registry | ||
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper:2181 | ||
|
||
kafka-connect: | ||
container_name: kafka-connect | ||
image: confluentinc/cp-kafka-connect:5.1.0 | ||
ports: | ||
- 8083:8083 | ||
depends_on: | ||
- zookeeper | ||
- kafka | ||
- schema-registry | ||
environment: | ||
CONNECT_BOOTSTRAP_SERVERS: "kafka:29092" | ||
CONNECT_REST_PORT: 8083 | ||
CONNECT_GROUP_ID: compose-connect-group | ||
CONNECT_CONFIG_STORAGE_TOPIC: docker-connect-configs | ||
CONNECT_OFFSET_STORAGE_TOPIC: docker-connect-offsets | ||
CONNECT_STATUS_STORAGE_TOPIC: docker-connect-status | ||
CONNECT_KEY_CONVERTER: io.confluent.connect.avro.AvroConverter | ||
CONNECT_KEY_CONVERTER_SCHEMA_REGISTRY_URL: 'http://schema-registry:8081' | ||
CONNECT_VALUE_CONVERTER: io.confluent.connect.avro.AvroConverter | ||
CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL: 'http://schema-registry:8081' | ||
CONNECT_INTERNAL_KEY_CONVERTER: "org.apache.kafka.connect.json.JsonConverter" | ||
CONNECT_INTERNAL_VALUE_CONVERTER: "org.apache.kafka.connect.json.JsonConverter" | ||
CONNECT_REST_ADVERTISED_HOST_NAME: "kafka-connect" | ||
CONNECT_LOG4J_ROOT_LOGLEVEL: "INFO" | ||
CONNECT_LOG4J_LOGGERS: "org.apache.kafka.connect.runtime.rest=WARN,org.reflections=ERROR" | ||
CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR: "1" | ||
CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR: "1" | ||
CONNECT_STATUS_STORAGE_REPLICATION_FACTOR: "1" | ||
CONNECT_PLUGIN_PATH: '/usr/share/java' | ||
CONNECT_HOST: kafka-connect | ||
volumes: | ||
- $PWD/ksql/ksql-clickstream-demo/demo/:/scripts | ||
- $PWD/ksql/ksql-clickstream-demo/demo/connect-config:/usr/share/java/null-smt | ||
|
||
ksql-server: | ||
container_name: ksql-server | ||
image: confluentinc/cp-ksql-server:5.1.0 | ||
ports: | ||
- 8088:8088 | ||
depends_on: | ||
- kafka | ||
- schema-registry | ||
environment: | ||
KSQL_CUB_KAFKA_TIMEOUT: 300 | ||
KSQL_BOOTSTRAP_SERVERS: kafka:29092 | ||
KSQL_LISTENERS: http://0.0.0.0:8088 | ||
KSQL_KSQL_SCHEMA_REGISTRY_URL: http://schema-registry:8081 | ||
KSQL_KSQL_SERVICE_ID: confluent_rmoff_01 | ||
|
||
ksql-cli: | ||
container_name: ksql-cli | ||
image: confluentinc/cp-ksql-cli:5.1.0 | ||
depends_on: | ||
- ksql-server | ||
entrypoint: /bin/sh | ||
tty: true | ||
volumes: | ||
- $PWD/ksql/ksql-clickstream-demo/demo:/usr/share/doc/clickstream | ||
|
||
kafkacat: | ||
container_name: kafkacat | ||
image: confluentinc/cp-kafkacat:latest | ||
depends_on: | ||
- kafka | ||
entrypoint: /bin/sh | ||
tty: true | ||
|
||
# Runs the Kafka KSQL data generator | ||
datagen: | ||
container_name: datagen | ||
image: confluentinc/ksql-examples:5.0.1 | ||
depends_on: | ||
- kafka | ||
- schema-registry | ||
command: "bash -c 'echo Waiting for Kafka to be ready... && \ | ||
cub kafka-ready -b kafka:29092 1 300 && \ | ||
echo Waiting for Confluent Schema Registry to be ready... && \ | ||
cub sr-ready schema-registry 8081 300 && \ | ||
echo Waiting a few seconds for topic creation to finish... && \ | ||
sleep 20 && \ | ||
ksql-datagen \ | ||
bootstrap-server=kafka:29092 \ | ||
quickstart=clickstream_codes \ | ||
format=json \ | ||
topic=clickstream_codes \ | ||
maxInterval=20 \ | ||
iterations=100 && \ | ||
ksql-datagen \ | ||
bootstrap-server=kafka:29092 \ | ||
quickstart=clickstream_users \ | ||
format=json \ | ||
topic=clickstream_users \ | ||
maxInterval=10 \ | ||
iterations=1000 && \ | ||
ksql-datagen \ | ||
quickstart=clickstream \ | ||
format=json \ | ||
topic=clickstream \ | ||
maxInterval=100 \ | ||
bootstrap-server=kafka:29092'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#Fri Jan 18 10:16:40 EST 2019 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
rootProject.name = 'gradle-confluent' | ||
|
||
if (file('../gradle-analytics').exists()) { | ||
includeBuild('../gradle-analytics') { | ||
dependencySubstitution { | ||
substitute module('gradle.plugin.com.redpillanalytics:gradle-analytics') with project(':') | ||
} | ||
} | ||
includeBuild('../gradle-analytics') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters