Skip to content

Commit

Permalink
Assume yes when using microdnf (#10157)
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Scholz <[email protected]>
  • Loading branch information
scholzj authored May 25, 2024
1 parent d0d8eeb commit 573975d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker-images/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ ARG TARGETARCH

USER root

RUN microdnf update \
RUN microdnf update -y \
&& microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y java-${JAVA_VERSION}-openjdk-headless openssl shadow-utils \
&& microdnf reinstall -y tzdata \
&& microdnf clean all
&& microdnf clean all -y

ENV JAVA_HOME /usr/lib/jvm/jre-17

Expand Down
2 changes: 1 addition & 1 deletion docker-images/kafka-based/kafka/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ARG TARGETOS
ARG TARGETARCH

RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y gettext nmap-ncat net-tools unzip hostname findutils tar \
&& microdnf clean all
&& microdnf clean all -y

# Add kafka user with UID 1001
# The user is in the group 0 to have access to the mounted volumes and storage
Expand Down
2 changes: 1 addition & 1 deletion docker-images/maven-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ USER root
RUN useradd -r -m -u 1001 -g 0 strimzi

RUN microdnf update -y \
&& microdnf clean all
&& microdnf clean all -y

USER 1001

0 comments on commit 573975d

Please sign in to comment.