From ab65dd1599f2ccd775d1eca60dac977158690d46 Mon Sep 17 00:00:00 2001 From: Lam Tran Date: Sat, 6 Apr 2024 08:18:45 +0700 Subject: [PATCH] chore(kafka): use apache/kafka official image (#1480) --- docker-compose.yml | 2 +- src/kafka/Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 99672b8486..bc1aae33d9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -590,7 +590,7 @@ services: - OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE - OTEL_RESOURCE_ATTRIBUTES - OTEL_SERVICE_NAME=kafka - - KAFKA_HEAP_OPTS=-Xmx200m -Xms200m + - KAFKA_HEAP_OPTS=-Xmx250m -Xms250m healthcheck: test: nc -z kafka 9092 start_period: 10s diff --git a/src/kafka/Dockerfile b/src/kafka/Dockerfile index b710528094..60f2d129cc 100644 --- a/src/kafka/Dockerfile +++ b/src/kafka/Dockerfile @@ -2,10 +2,10 @@ # SPDX-License-Identifier: Apache-2.0 -FROM confluentinc/cp-kafka:7.5.2 +FROM apache/kafka:3.7.0 USER root -ARG version=2.0.0 +ARG version=2.2.0 ADD https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v$version/opentelemetry-javaagent.jar /tmp/opentelemetry-javaagent.jar RUN chmod go+r /tmp/opentelemetry-javaagent.jar