This is an automated email from the ASF dual-hosted git repository.

chia7712 pushed a commit to branch test_docker
in repository https://gitbox.apache.org/repos/asf/kafka.git

commit df55dba80df6c058e83db53d16b9756a7c489e9f
Author: Chia-Ping Tsai <[email protected]>
AuthorDate: Mon Jan 12 23:45:28 2026 +0800

    tmp
---
 docker/jvm/Dockerfile | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/docker/jvm/Dockerfile b/docker/jvm/Dockerfile
index 1c7c95d4869..e696b455386 100644
--- a/docker/jvm/Dockerfile
+++ b/docker/jvm/Dockerfile
@@ -33,17 +33,14 @@ COPY *kafka.tgz kafka.tgz
 RUN set -eux ; \
     apk update ; \
     apk upgrade ; \
-    apk add --no-cache bash; \
-    if [ -n "$KAFKA_URL" ]; then \
-        apk add --no-cache wget gcompat gpg gpg-agent procps; \
-        wget -nv -O kafka.tgz "$KAFKA_URL"; \
-        wget -nv -O kafka.tgz.asc "$KAFKA_URL.asc"; \
-        wget -nv -O KEYS https://downloads.apache.org/kafka/KEYS; \
-        gpg --import KEYS; \
-        gpg --batch --verify kafka.tgz.asc kafka.tgz; \
-    fi; \
+    apk add --no-cache wget gcompat gpg gpg-agent procps bash; \
     mkdir opt/kafka; \
-    tar xfz kafka.tgz -C opt/kafka --strip-components 1;
+    wget -nv -O kafka.tgz "$kafka_url"; \
+    wget -nv -O kafka.tgz.asc "$kafka_url.asc"; \
+    tar xfz kafka.tgz -C /opt/kafka --strip-components 1; \
+    wget -nv -O KEYS https://downloads.apache.org/kafka/KEYS; \
+    gpg --import KEYS; \
+    gpg --batch --verify kafka.tgz.asc kafka.tgz
 
 # Generate jsa files using dynamic CDS for kafka server start command and 
kafka storage format command
 RUN /etc/kafka/docker/jsa_launch

Reply via email to