You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ma...@apache.org on 2024/04/22 09:23:13 UTC

(kafka) branch 3.7 updated: MINOR: Fix CDS in docker image (#15771)

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

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


The following commit(s) were added to refs/heads/3.7 by this push:
     new 8faac9d7614 MINOR: Fix CDS in docker image (#15771)
8faac9d7614 is described below

commit 8faac9d76149e7f0d92aa2513bb7a711f3d0ac0c
Author: Vedarth Sharma <14...@users.noreply.github.com>
AuthorDate: Mon Apr 22 14:51:39 2024 +0530

    MINOR: Fix CDS in docker image (#15771)
    
    Due to difference in packages present when jsa files were generated and when docker image is generated, there is a log on starting docker image.
    
    [0.001s][warning][cds] The shared archive file has a bad magic number: 0
    
    There is no functionality impact, only startup time is higher because of this issue.
    
    This PR fixes the warning and improves startup performance of the docker image
    
    Reviewers:  Manikumar Reddy <anikumar.reddy@gmail.co
---
 docker/jvm/Dockerfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docker/jvm/Dockerfile b/docker/jvm/Dockerfile
index df552ad019a..72e35e63c04 100644
--- a/docker/jvm/Dockerfile
+++ b/docker/jvm/Dockerfile
@@ -28,7 +28,7 @@ COPY jsa_launch /etc/kafka/docker/jsa_launch
 RUN set -eux ; \
     apk update ; \
     apk upgrade ; \
-    apk add --no-cache wget gcompat gpg gpg-agent procps netcat-openbsd bash; \
+    apk add --no-cache wget gcompat gpg gpg-agent procps bash; \
     mkdir opt/kafka; \
     wget -nv -O kafka.tgz "$kafka_url"; \
     wget -nv -O kafka.tgz.asc "$kafka_url.asc"; \
@@ -62,7 +62,7 @@ LABEL org.label-schema.name="kafka" \
 RUN set -eux ; \
     apk update ; \
     apk upgrade ; \
-    apk add --no-cache wget gpg gpg-agent gcompat bash; \
+    apk add --no-cache wget gcompat gpg gpg-agent procps bash; \
     mkdir opt/kafka; \
     wget -nv -O kafka.tgz "$kafka_url"; \
     wget -nv -O kafka.tgz.asc "$kafka_url.asc"; \