m1a2st commented on code in PR #17625:
URL: https://github.com/apache/kafka/pull/17625#discussion_r1823619824
##########
tests/docker/Dockerfile:
##########
@@ -55,6 +83,20 @@ ENV TZ="/usr/share/zoneinfo/America/Los_Angeles"
# Do not ask for confirmations when running apt-get, etc.
ENV DEBIAN_FRONTEND noninteractive
+ENV java_base_dir=/opt/jdk
+
+# Copy the JDKs from the build-native-image stage
+COPY --from=build-native-image ${java_base_dir}/11 ${java_base_dir}/11
+COPY --from=build-native-image ${java_base_dir}/17 ${java_base_dir}/17
+
+# This JAVA_HOME path is also used in tests/kafkatest/services/kafka/util.py,
+# so if you change it here, you should also change it there.
+ENV JAVA_HOME=${java_base_dir}/17
+ENV PATH="$JAVA_HOME/bin:$PATH"
+
+# Create symlinks for keytool
Review Comment:
Using the decompression method to install the JDK won’t create the `keytool`
command for you. Since testing requires keytool, we'll need to manually bind it.
--
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]