chia7712 commented on code in PR #20945: URL: https://github.com/apache/kafka/pull/20945#discussion_r2550185662
########## tests/docker/Dockerfile: ########## @@ -149,10 +149,13 @@ RUN useradd -u $UID -ms /bin/bash ducker \ && mkdir -p /home/ducker/ \ && rsync -aiq /root/.ssh/ /home/ducker/.ssh \ && chown -R ducker /home/ducker/ /mnt/ /var/log/ \ - && echo "PATH=$(runuser -l ducker -c 'echo $PATH'):$JAVA_HOME/bin" >> /home/ducker/.ssh/environment \ - && echo 'PATH=$PATH:'"$JAVA_HOME/bin" >> /home/ducker/.profile \ && echo 'ducker ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers +# Symlink all JDK binaries (java, jcmd, jps, etc.) to /usr/bin. +# We don't add PATH env to ~/.ssh/environment because on some Linux distributions, +# PAM (Pluggable Authentication Modules) may re-read /etc/environment, overwriting PATH. +RUN cp -sn $JAVA_HOME/bin/* /usr/bin/ Review Comment: Please remove the unused setting in env file -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
