You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ch...@apache.org on 2026/09/22 02:57:08 UTC

(kafka) branch trunk updated: MINOR: Install gnupg2 in native Docker image build (#23541)

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

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


The following commit(s) were added to refs/heads/trunk by this push:
     new b655650afcc MINOR: Install gnupg2 in native Docker image build (#23541)
b655650afcc is described below

commit b655650afcc639202f45c976c21dc941283fd670
Author: Omnia Ibrahim <o....@gmail.com>
AuthorDate: Tue Sep 22 03:57:01 2026 +0100

    MINOR: Install gnupg2 in native Docker image build (#23541)
    
    The native Docker image build fails with "gpg: command not found" (exit
    code 127) when verifying the downloaded release tarball's signature.
    
    https://github.com/apache/kafka/actions/runs/35000209182/job/104486450640
    
    This is a regression from KAFKA-20314 (#22059), which switched the
    native image base from ghcr.io/graalvm/graalvm-community:21 to :25 to
    fix an intermittent startup segfault. That base image swap was otherwise
    correct, but graalvm-community:25 does not bundle gnupg the way :21 did,
    so the existing `gpg --import` / `gpg --batch --verify` steps in the
    Dockerfile now fail before the native-image compilation ever runs.
    
    Fix by installing gnupg2   Verified locally: native image now builds and
    boots successfully against the 4.4.0-rc1 artifacts, including signature
    verification.
    
    Reviewers: Chia-Ping Tsai <ch...@gmail.com>, Gaurav Narula
     <ga...@apple.com>
---
 docker/native/Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docker/native/Dockerfile b/docker/native/Dockerfile
index e23cfb5d817..d7cfb393eb8 100644
--- a/docker/native/Dockerfile
+++ b/docker/native/Dockerfile
@@ -34,7 +34,7 @@ COPY *kafka.tgz /app
 
 RUN set -eux ; \
     if [ -n "$kafka_url" ]; then \
-        microdnf install wget; \
+        microdnf install wget gnupg2; \
         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; \