Skip to content

Commit

Permalink
With explicit log4j path we can change config mount ...
Browse files Browse the repository at this point in the history
to not mix with sample config.

See solsson/dockerfiles#10.
  • Loading branch information
solsson committed Jul 26, 2017
1 parent 6f8f6d4 commit 5bb49e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 50kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
image: solsson/kafka:0.11.0.0@sha256:b27560de08d30ebf96d12e74f80afcaca503ad4ca3103e63b1fd43a2e4c976ce
env:
- name: KAFKA_LOG4J_OPTS
value: -Dlog4j.configuration=file:/opt/kafka/config/log4j.properties
value: -Dlog4j.configuration=file:/etc/kafka/log4j.properties
- name: JMX_PORT
value: "5555"
ports:
Expand All @@ -41,7 +41,7 @@ spec:
- -c
- >
./bin/kafka-server-start.sh
./config/server.properties
/etc/kafka/server.properties
--override zookeeper.connect=zookeeper:2181
--override log.retention.hours=-1
--override log.dirs=/var/lib/kafka/data/topics
Expand All @@ -59,7 +59,7 @@ spec:
- 'echo "" | nc -w 1 127.0.0.1 9092'
volumeMounts:
- name: config
mountPath: /opt/kafka/config
mountPath: /etc/kafka
- name: data
mountPath: /var/lib/kafka/data
volumes:
Expand Down

0 comments on commit 5bb49e3

Please sign in to comment.