Skip to content

Commit b5e144a

Browse files
authored
Remove unused nmap-ncat RPM package and restructure the RPM installation (#12601)
Signed-off-by: Jakub Scholz <www@scholzj.com>
1 parent da55204 commit b5e144a

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

docker-images/base/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ LABEL name='base' \
1717
USER root
1818

1919
RUN microdnf update -y \
20-
&& microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y java-${JAVA_VERSION}-openjdk-headless openssl shadow-utils \
20+
&& microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y \
21+
# Needed to run Java applications \
22+
java-${JAVA_VERSION}-openjdk-headless \
23+
# Needed to work with TLS certificates in our shell scripts as well as from our own Java code \
24+
openssl \
25+
# Needed to add non-root users to our container images \
26+
shadow-utils \
2127
&& microdnf reinstall -y tzdata \
2228
&& microdnf clean all -y
2329

docker-images/kafka-based/kafka/Dockerfile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,22 @@ LABEL name='kafka' \
1515
summary="Kafka ${KAFKA_VERSION} image of the Strimzi Kafka Operator project." \
1616
description="Kafka image used by the Strimzi Kafka Operator to run Kafka ${KAFKA_VERSION} clusters."
1717

18-
RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y gettext nmap-ncat net-tools unzip hostname findutils tar \
18+
RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y \
19+
# net-tools are needed for the health check probes (netstat) \
20+
net-tools \
21+
# hostname is used by Strimzi scripts to determine the Kafka node ID \
22+
hostname \
23+
# xargs is used by Kafka's own shell scripts \
24+
# find and xargs are also used in our Kafka Connect Build Dockerfiles \
25+
findutils \
26+
# Tar is used to unpack the downloaded binaries here in the Dockerfile \
27+
# Tar is also used in our Kafka Connect Build Dockerfiles \
28+
tar \
29+
# gzip is used to unpack the downloaded binaries here in the Dockerfile \
30+
# gzip is also used in our Kafka Connect Build Dockerfiles \
31+
gzip \
32+
# unzip is used in our Kafka Connect Build Dockerfiles \
33+
unzip \
1934
&& microdnf clean all -y
2035

2136
# Add kafka user with UID 1001

0 commit comments

Comments
 (0)