From e2da699aa29a42e82901c7ae394e805e45ce59b6 Mon Sep 17 00:00:00 2001 From: Zihao Zhang Date: Tue, 14 May 2024 14:46:24 -0700 Subject: [PATCH 1/2] Fix kafka permission in dockerfile --- src/kafka/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kafka/Dockerfile b/src/kafka/Dockerfile index 60f06f8d40..9c2ff30316 100644 --- a/src/kafka/Dockerfile +++ b/src/kafka/Dockerfile @@ -6,10 +6,11 @@ FROM apache/kafka:3.7.0 USER root ARG version=2.3.0 -ADD --chmod=644 https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v$version/opentelemetry-javaagent.jar /tmp/opentelemetry-javaagent.jar USER appuser +ADD --chown=appuser:appuser https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v$version/opentelemetry-javaagent.jar /tmp/opentelemetry-javaagent.jar + ENV KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092,CONTROLLER://0.0.0.0:9093 ENV KAFKA_CONTROLLER_QUORUM_VOTERS='1@0.0.0.0:9093' ENV KAFKA_CONTROLLER_LISTENER_NAMES=CONTROLLER From d73dd725eff0c74ea7d75bc078fa3dbb3797b1ef Mon Sep 17 00:00:00 2001 From: Zihao Zhang Date: Tue, 14 May 2024 14:52:20 -0700 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e562772b49..49590580e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,8 @@ the release. ([#1556](https://github.com/open-telemetry/opentelemetry-demo/pull/1556)) * [frontend] Slowloading of images based on imageSlowLoad flag ([#1515](https://github.com/open-telemetry/opentelemetry-demo/pull/1486)) +* [kafka] Fix permission issue with the telemetry agent when running in docker compose + ([#1574](https://github.com/open-telemetry/opentelemetry-demo/pull/1574)) ## 1.9.0