pan3793 commented on code in PR #7295:
URL: https://github.com/apache/kyuubi/pull/7295#discussion_r2659454478
##########
docker/playground/image/kyuubi-playground-base.Dockerfile:
##########
@@ -10,13 +10,23 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-FROM eclipse-temurin:8-focal
+FROM ubuntu:focal
+
+ENV DEBIAN_FRONTEND=noninteractive
+ENV DEBCONF_TERSE=true
RUN set -x && \
+ echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/10disableextras
&& \
+ echo 'APT::Install-Suggests "0";' >> /etc/apt/apt.conf.d/10disableextras
&& \
ln -snf /usr/bin/bash /usr/bin/sh && \
apt-get update -q && \
- apt-get install -yq retry busybox && \
+ apt-get install -yq \
+ retry \
+ busybox \
+ openjdk-8-jdk-headless \
+ openjdk-17-jdk-headless && \
rm -rf /var/lib/apt/lists/* && \
+ update-java-alternatives --set $(update-java-alternatives --list | grep
java-1.8.0-openjdk | awk '{print $NF}') || \
Review Comment:
use `||` to ignore the error code returned by `update-java-alternatives`
command, as JDK 8 lacks some commands provided by mordern JDKs
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]