try fixing kafka kraft dockerfile

This commit is contained in:
Adam 2022-06-24 14:15:22 +02:00
parent 4c94a41029
commit 62f37353ba

View file

@ -35,14 +35,14 @@ EXPOSE 9092 9093
RUN echo "$(./bin/kafka-storage.sh random-uuid)" > cluster_id \
&& echo "Generated a Kafka Cluster ID: $(cat cluster_id)"
COPY ./kafka-server.properties ./server.properties
# Format storage directories
RUN ./bin/kafka-storage.sh format \
--ignore-formatted \
--config ./config/kraft/server.properties \
--config ./server.properties \
--cluster-id "$(cat cluster_id)"
COPY ./kafka-server.properties ./server.properties
# launch the broker in KRaft mode, which means that it runs without ZooKeeper
ENTRYPOINT ["./bin/kafka-server-start.sh", "./server.properties"]