Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading node-rdkafka #117

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ language: node_js
sudo: required
node_js:
- '8.2.0'
- '16'
- '18'
services:
- docker
cache:
Expand Down
27 changes: 24 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '2'

services:
zookeeper:
image: confluentinc/cp-zookeeper:4.1.0
image: confluentinc/cp-zookeeper:6.1.0
hostname: zookeeper
environment:
SERVICE_NAME: zookeeper
Expand All @@ -13,7 +13,7 @@ services:
- "2181:2181"

kafka:
image: confluentinc/cp-kafka:4.1.0
image: confluentinc/cp-kafka:6.1.0
hostname: kafka
links:
- zookeeper
Expand All @@ -25,7 +25,7 @@ services:
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1

schema-registry:
image: confluentinc/cp-schema-registry:4.1.0
image: confluentinc/cp-schema-registry:6.1.0
hostname: schema-registry
links:
- kafka
Expand All @@ -36,3 +36,24 @@ services:
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: "zookeeper:2181"
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: "PLAINTEXT://kafka:9092"
SCHEMA_REGISTRY_HOST_NAME: schema-registry

kafka-setup:
image: confluentinc/cp-kafka:6.1.0
hostname: kafka-setup
container_name: kafka-setup
depends_on:
- kafka
- schema-registry
command: "bash -c 'echo Waiting for Kafka to be ready... && \
cub kafka-ready -b kafka:9092 1 20 && \
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic testNodeKafkaAvro && \
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic testNodeKafkaAvroTwo && \
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic Teacher-Student && \
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic Teacher-Student-duplicateSchema && \
kafka-topics --create --if-not-exists --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic testNodeKafkaWithoutSR'"

environment:
# The following settings are listed here only to satisfy the image's requirements.
# We override the image's `command` anyways, hence this container will not start a broker.
KAFKA_BROKER_ID: ignored
KAFKA_ZOOKEEPER_CONNECT: ignored
Loading