-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Hermann Mayer <[email protected]>
- Loading branch information
Showing
14 changed files
with
61 additions
and
33 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 was deleted.
Oops, something went wrong.
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,12 @@ | ||
FROM wurstmeister/kafka:2.12-2.1.0 | ||
FROM apache/kafka:3.7.0 | ||
MAINTAINER Hermann Mayer "[email protected]" | ||
|
||
# You can change this environment variable on run's with -e | ||
ENV MDNS_HOSTNAME=kafka.local | ||
|
||
# Switch to the root user | ||
USER root | ||
|
||
# Install system packages | ||
RUN apk add --no-cache \ | ||
dbus avahi avahi-tools supervisor bash | ||
|
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
File renamed without changes.
File renamed without changes.
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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# See: https://bit.ly/3UNWpq2 | ||
# See: https://bit.ly/3QLrxFC | ||
|
||
# Configure application defaults | ||
export KAFKA_NODE_ID=${KAFKA_NODE_ID:-'1'} | ||
export KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=${KAFKA_LISTENER_SECURITY_PROTOCOL_MAP:-'CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT'} | ||
export KAFKA_ADVERTISED_LISTENERS=${KAFKA_ADVERTISED_LISTENERS:-"PLAINTEXT_HOST://${MDNS_HOSTNAME}:9092,PLAINTEXT://${MDNS_HOSTNAME}:19092"} | ||
export KAFKA_PROCESS_ROLES=${KAFKA_PROCESS_ROLES:-'broker,controller'} | ||
export KAFKA_CONTROLLER_QUORUM_VOTERS=${KAFKA_CONTROLLER_QUORUM_VOTERS:-'1@localhost:29093'} | ||
export KAFKA_LISTENERS=${KAFKA_LISTENERS:-'CONTROLLER://:29093,PLAINTEXT_HOST://:9092,PLAINTEXT://:19092'} | ||
export KAFKA_INTER_BROKER_LISTENER_NAME=${KAFKA_INTER_BROKER_LISTENER_NAME:-'PLAINTEXT'} | ||
export KAFKA_CONTROLLER_LISTENER_NAMES=${KAFKA_CONTROLLER_LISTENER_NAMES:-'CONTROLLER'} | ||
export CLUSTER_ID=${CLUSTER_ID:-'4L6g3nShT-eMCtK--X86sw'} | ||
export KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=${KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR:-'1'} | ||
export KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS=${KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS:-'0'} | ||
export KAFKA_TRANSACTION_STATE_LOG_MIN_ISR=${KAFKA_TRANSACTION_STATE_LOG_MIN_ISR:-'1'} | ||
export KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR=${KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR:-'1'} | ||
export KAFKA_LOG_DIRS=${KAFKA_LOG_DIRS:-'/tmp/kraft-combined-logs'} | ||
|
||
# Start the regular bootstrapping | ||
exec /etc/kafka/docker/run |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,9 +1,23 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
# See: https://bit.ly/3UNWpq2 | ||
# See: https://bit.ly/3QLrxFC | ||
|
||
# Configure application defaults | ||
export KAFKA_ZOOKEEPER_CONNECT=${KAFKA_ZOOKEEPER_CONNECT:-'zookeeper:2181'} | ||
export KAFKA_ADVERTISED_HOST_NAME=${KAFKA_ADVERTISED_HOST_NAME:-${MDNS_HOSTNAME}} | ||
export KAFKA_LOG_DIRS=${KAFKA_LOG_DIRS:-'/kafka/logs'} | ||
export KAFKA_NODE_ID=${KAFKA_NODE_ID:-'1'} | ||
export KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=${KAFKA_LISTENER_SECURITY_PROTOCOL_MAP:-'CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT'} | ||
export KAFKA_ADVERTISED_LISTENERS=${KAFKA_ADVERTISED_LISTENERS:-"PLAINTEXT_HOST://${MDNS_HOSTNAME}:9092,PLAINTEXT://${MDNS_HOSTNAME}:19092"} | ||
export KAFKA_PROCESS_ROLES=${KAFKA_PROCESS_ROLES:-'broker,controller'} | ||
export KAFKA_CONTROLLER_QUORUM_VOTERS=${KAFKA_CONTROLLER_QUORUM_VOTERS:-'1@localhost:29093'} | ||
export KAFKA_LISTENERS=${KAFKA_LISTENERS:-'CONTROLLER://:29093,PLAINTEXT_HOST://:9092,PLAINTEXT://:19092'} | ||
export KAFKA_INTER_BROKER_LISTENER_NAME=${KAFKA_INTER_BROKER_LISTENER_NAME:-'PLAINTEXT'} | ||
export KAFKA_CONTROLLER_LISTENER_NAMES=${KAFKA_CONTROLLER_LISTENER_NAMES:-'CONTROLLER'} | ||
export CLUSTER_ID=${CLUSTER_ID:-'4L6g3nShT-eMCtK--X86sw'} | ||
export KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=${KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR:-'1'} | ||
export KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS=${KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS:-'0'} | ||
export KAFKA_TRANSACTION_STATE_LOG_MIN_ISR=${KAFKA_TRANSACTION_STATE_LOG_MIN_ISR:-'1'} | ||
export KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR=${KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR:-'1'} | ||
export KAFKA_LOG_DIRS=${KAFKA_LOG_DIRS:-'/tmp/kraft-combined-logs'} | ||
|
||
# Start the wurstmeister/kafka bootstrapping | ||
source /usr/bin/start-kafka.sh | ||
# Start the regular bootstrapping | ||
exec /etc/kafka/docker/run |
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 |
---|---|---|
@@ -1 +1 @@ | ||
2.1 | ||
3.7 |