From f730eae06db1b20db3bcb3e21b7ca734239c7d89 Mon Sep 17 00:00:00 2001 From: Hyukjin Kwon Date: Tue, 27 Aug 2024 17:55:00 +0900 Subject: [PATCH] [SPARK-49402][PYTHON][FOLLOW-UP] Fix Binder integration in PySpark documentation Followup PR to change JRE version from 8 to 11 Authored-by: Hyukjin Kwon Signed-off-by: Hyukjin Kwon (cherry picked from commit 9fc1e05) Signed-off-by: Hyukjin Kwon --- binder/Dockerfile | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/binder/Dockerfile b/binder/Dockerfile index 87a69fef69ce8..daa9d2d76c393 100644 --- a/binder/Dockerfile +++ b/binder/Dockerfile @@ -38,21 +38,9 @@ USER root RUN chown -R ${NB_UID} ${HOME} # To solve add-apt-repository : command not found -RUN apt-get update && apt-get -y install software-properties-common - -# Install Java -RUN \ - echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ - add-apt-repository -y ppa:webupd8team/java && \ - apt-get update && \ - apt-get install -y oracle-java8-installer --allow-unauthenticated && \ - rm -rf /var/lib/apt/lists/* && \ - rm -rf /var/cache/oracle-jdk8-installer - -# Define commonly used JAVA_HOME variable -ENV JAVA_HOME /usr/lib/jvm/java-8-oracle - -RUN apt-get update && apt-get install -y git coreutils +RUN apt-get update && apt-get install -y software-properties-common +RUN add-apt-repository ppa:openjdk-r/ppa +RUN apt-get update && apt-get install -y openjdk-8-jre git coreutils USER ${NB_USER} RUN binder/postBuild