Skip to content

Commit

Permalink
Fix kafka permission in dockerfile (open-telemetry#1574)
Browse files Browse the repository at this point in the history
* Fix kafka permission in dockerfile

* update changelog
  • Loading branch information
zzh8829 authored and AlexPSplunk committed Jul 10, 2024
1 parent 4183577 commit dc5017f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion src/kafka/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]:9093'
ENV KAFKA_CONTROLLER_LISTENER_NAMES=CONTROLLER
Expand Down

0 comments on commit dc5017f

Please sign in to comment.