Skip to content

Commit

Permalink
Using new gpg commands for native image too
Browse files Browse the repository at this point in the history
  • Loading branch information
KrishVora2912 committed Aug 13, 2024
1 parent 5b54175 commit 92ec952
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions docker/native/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,12 @@ RUN mkdir $KAFKA_DIR; \
microdnf install wget; \
wget -nv -O kafka.tgz "$KAFKA_URL"; \
wget -nv -O kafka.tgz.asc "$KAFKA_URL.asc"; \
for server in ha.pool.sks-keyservers.net $(shuf -e \
hkp://p80.pool.sks-keyservers.net:80 \
keyserver.ubuntu.com \
hkp://keyserver.ubuntu.com:80 \
pgp.mit.edu \
hkp://keys.openpgp.org) ; do \
gpg --batch --keyserver "$server" --recv-keys "$GPG_KEY" && break || : ; \
done && \
export GNUPGHOME="$(mktemp -d)"; \
gpg --batch --keyserver hkp://keys.openpgp.org --recv-keys "$GPG_KEY" || \
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$GPG_KEY" ; \
gpg --batch --verify kafka.tgz.asc kafka.tgz; \
gpgconf --kill all; \
rm -rf "$GNUPGHOME" kafka.tgz.asc; \
tar xfz kafka.tgz -C $KAFKA_DIR --strip-components 1; \
rm kafka.tgz ; \
# Build the native-binary of the apache kafka using graalVM native-image.
Expand Down

0 comments on commit 92ec952

Please sign in to comment.