try fixing kafka kraft dockerfile
This commit is contained in:
parent
4c94a41029
commit
62f37353ba
1 changed files with 3 additions and 3 deletions
|
|
@ -35,14 +35,14 @@ EXPOSE 9092 9093
|
||||||
RUN echo "$(./bin/kafka-storage.sh random-uuid)" > cluster_id \
|
RUN echo "$(./bin/kafka-storage.sh random-uuid)" > cluster_id \
|
||||||
&& echo "Generated a Kafka Cluster ID: $(cat cluster_id)"
|
&& echo "Generated a Kafka Cluster ID: $(cat cluster_id)"
|
||||||
|
|
||||||
|
COPY ./kafka-server.properties ./server.properties
|
||||||
|
|
||||||
# Format storage directories
|
# Format storage directories
|
||||||
RUN ./bin/kafka-storage.sh format \
|
RUN ./bin/kafka-storage.sh format \
|
||||||
--ignore-formatted \
|
--ignore-formatted \
|
||||||
--config ./config/kraft/server.properties \
|
--config ./server.properties \
|
||||||
--cluster-id "$(cat cluster_id)"
|
--cluster-id "$(cat cluster_id)"
|
||||||
|
|
||||||
COPY ./kafka-server.properties ./server.properties
|
|
||||||
|
|
||||||
# launch the broker in KRaft mode, which means that it runs without ZooKeeper
|
# launch the broker in KRaft mode, which means that it runs without ZooKeeper
|
||||||
ENTRYPOINT ["./bin/kafka-server-start.sh", "./server.properties"]
|
ENTRYPOINT ["./bin/kafka-server-start.sh", "./server.properties"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue