Skip to content

Commit

Permalink
[#3764] Kafka SASL cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
ljupcovangelski committed Oct 21, 2022
1 parent 88128aa commit 7377d76
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion infrastructure/images/kafka/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM openjdk:8-jre-alpine
LABEL maintainer "https://github.com/airyhq"
LABEL name="kafka" version=${INSTALL_KAFKA_VERSION}

ENV INSTALL_KAFKA_VERSION 2.7.0
ENV INSTALL_KAFKA_VERSION 2.8.2
ENV INSTALL_SCALA_VERSION 2.13
ENV INSTALL_MIRROR="https://downloads.apache.org/"

Expand Down
4 changes: 2 additions & 2 deletions infrastructure/images/kafka/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ build:
docker build -t airy-kafka .

release: build
docker tag airy-kafka ghcr.io/airyhq/infrastructure/kafka:2.7.0
docker push ghcr.io/airyhq/infrastructure/kafka:2.7.0
docker tag airy-kafka ghcr.io/airyhq/infrastructure/kafka:2.8.2
docker push ghcr.io/airyhq/infrastructure/kafka:2.8.2
2 changes: 1 addition & 1 deletion infrastructure/images/kafka/scripts/configure-kafka.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ADVERTISED_LISTENERS=$(echo "${AIRY_ADVERTISED_LISTENERS}" | \
# Insert all other KAFKA_* env variables as settings
for VAR in $(env)
do
if [[ $VAR =~ ^KAFKA_ && ! $VAR =~ ^KAFKA_VERSION && ! $VAR =~ ^KAFKA_[0-9] && ! $VAR =~ ^KAFKA_PORT && ! $VAR =~ ^KAFKA_SERVICE_ ]]; then
if [[ $VAR =~ ^KAFKA_ && ! $VAR =~ ^KAFKA_VERSION && ! $VAR =~ ^KAFKA_[0-9] && ! $VAR =~ ^KAFKA_PORT && ! $VAR =~ ^KAFKA_OPTS && ! $VAR =~ ^KAFKA_SERVICE_ ]]; then
kafka_name=$(echo "$VAR" | sed -r "s/KAFKA_(.*)=.*/\1/g" | tr '[:upper:]' '[:lower:]' | tr _ .)
env_var=$(echo "$VAR" | sed -r "s/(.*)=.*/\1/g")
echo "$kafka_name=${!env_var}" >> /etc/kafka/server.properties
Expand Down

0 comments on commit 7377d76

Please sign in to comment.