From dc5017fea789af505fd788ccb464ab2c667410b4 Mon Sep 17 00:00:00 2001 From: Zihao Zhang Date: Fri, 31 May 2024 19:24:11 -0700 Subject: [PATCH] Fix kafka permission in dockerfile (#1574) * Fix kafka permission in dockerfile * update changelog --- CHANGELOG.md | 2 ++ src/kafka/Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2925a244dc..b26af40dec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,8 @@ the release. ([#1515](https://github.com/open-telemetry/opentelemetry-demo/pull/1486)) * [frontend] Fix imageloading issues on optimized images. bump next.js version ([#1571](https://github.com/open-telemetry/opentelemetry-demo/pull/1571)) +* [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 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