Skip to content

Commit

Permalink
[fix][build] Fix networkaddress.cache.negative.ttl config (apache#22400)
Browse files Browse the repository at this point in the history
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
(cherry picked from commit be012c8)
(cherry picked from commit 20d35f1)
  • Loading branch information
nodece authored and nikhil-ctds committed Apr 3, 2024
1 parent 5f209fd commit 896f6c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker/pulsar/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ RUN mkdir -p /etc/apt/keyrings \
&& apt-get -y install temurin-17-jdk \
&& export ARCH=$(uname -m | sed -r 's/aarch64/arm64/g' | awk '!/arm64/{$0="amd64"}1') \
&& echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/temurin-17-jdk-$ARCH/conf/security/java.security \
&& echo networkaddress.cache.negative.ttl=1 >> /usr/lib/jvm/temurin-17-jdk-$ARCH/conf/security/java.security

# Cleanup apt
RUN apt-get -y --purge autoremove \
Expand Down

0 comments on commit 896f6c3

Please sign in to comment.