You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2024/08/27 09:07:55 UTC
(spark) 04/07: [SPARK-49402][PYTHON][FOLLOW-UP] Fix Binder integration in PySpark documentation
This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to tag v3.5.2
in repository https://gitbox.apache.org/repos/asf/spark.git
commit ab199ceebeaf4ca23920be04ca1cc943fd2bda2e
Author: Hyukjin Kwon <gu...@apache.org>
AuthorDate: Tue Aug 27 17:36:47 2024 +0900
[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 <gu...@apache.org>
Signed-off-by: Hyukjin Kwon <gu...@apache.org>
(cherry picked from commit 9fc1e05)
Signed-off-by: Hyukjin Kwon <gu...@apache.org>
---
binder/Dockerfile | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/binder/Dockerfile b/binder/Dockerfile
index b91ca1dce0d9..ac6a77b8cda0 100644
--- a/binder/Dockerfile
+++ b/binder/Dockerfile
@@ -36,8 +36,23 @@ USER ${USER}
COPY . ${HOME}
USER root
RUN chown -R ${NB_UID} ${HOME}
-RUN add-apt-repository ppa:openjdk-r/ppa
-RUN apt-get update && apt-get install -y openjdk-11-jre git coreutils
+
+# To solve add-apt-repository : command not found
+RUN 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
USER ${NB_USER}
RUN binder/postBuild
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org