Skip to content

Commit b67ec95

Browse files
committed
RHINENG-19571: use upstream kafka image
apache/kafka is build both for amd64 and arm64
1 parent ec649a5 commit b67ec95

6 files changed

Lines changed: 5 additions & 11 deletions

File tree

dev/kafka/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM quay.io/psegedy/cp-kafka:7.7.0
1+
FROM docker.io/apache/kafka:4.0.0
22

33
ADD /dev/kafka/entrypoint.sh /app/entrypoint.sh
44
ADD /dev/kafka/setup.sh /app/setup.sh

dev/kafka/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
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) '

dev/kafka/setup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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"
1111
do
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"
1818
done
1919
# start simple http server so other components can check that kafka has fully started
2020
while : ; 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"
2222
done

docker-compose.prod.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ services:
2626
- ./dev/kafka/secrets:/etc/kafka/secrets
2727
- ./dev/kafka:/app
2828
ports:
29-
- 29092:29092
30-
- 29093:29093
3129
- 9092:9092
3230
- 9093:9093
3331
- 9099:9099

docker-compose.test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ services:
2626
- ./dev/kafka/secrets:/etc/kafka/secrets
2727
- ./dev/kafka:/app
2828
ports:
29-
- 29092:29092
30-
- 29093:29093
3129
- 9092:9092
3230
- 9093:9093
3331
- 9099:9099

0 commit comments

Comments
 (0)