File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM quay .io/psegedy/cp- kafka:7.7 .0
1+ FROM docker .io/apache/ kafka:4.0 .0
22
33ADD /dev/kafka/entrypoint.sh /app/entrypoint.sh
44ADD /dev/kafka/setup.sh /app/setup.sh
Original file line number Diff line number Diff line change 22
33/app/setup.sh 2>&1 | grep -v ' ^WARNING: Due to limitations in metric names' &
44
5- exec /etc/confluent /docker/run 2>&1 \
5+ exec /etc/kafka /docker/run 2>&1 \
66 | grep -v -E ' (TRACE|DEBUG|INFO) '
Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ for topic in "platform.inventory.events" "patchman.evaluator.upload" \
99 " platform.payload-status" " test" \
1010 " platform.content-sources.template"
1111do
12- until /usr/ bin/kafka-topics --create --if-not-exists --topic $topic --partitions 1 --bootstrap-server kafka:9092 \
13- --replication-factor 1; do
12+ until /opt/kafka/ bin/kafka-topics.sh --create --if-not-exists --topic $topic \
13+ --partitions 1 --bootstrap-server kafka:9092 --replication-factor 1; do
1414 echo " Unable to create topic $topic "
1515 sleep 1
1616 done
1717 echo " Topic $topic created successfully"
1818done
1919# start simple http server so other components can check that kafka has fully started
2020while : ; do
21- nc -l -p 9099 -c ' echo -e "HTTP/1.1 200 OK\n\nTOPICS READY"' ;
21+ nc -lk -p 9099 -e echo -e " HTTP/1.1 200 OK\n\nTOPICS READY"
2222done
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ services:
2323 - ./dev/kafka/secrets:/etc/kafka/secrets
2424 - ./dev/kafka:/app
2525 ports :
26- - 29092:29092
27- - 29093:29093
2826 - 9092:9092
2927 - 9093:9093
3028 - 9099:9099
You can’t perform that action at this time.
0 commit comments