Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Copyright (c) IBM. | ||
FROM jupyter/minimal-kernel | ||
|
||
|
||
USER root | ||
|
||
|
||
|
||
# Java 8 | ||
RUN echo "deb http://http.debian.net/debian jessie-backports main" >> /etc/apt/sources.list | ||
RUN apt-get update | ||
RUN apt-get -y -t jessie-backports install openjdk-8-jdk | ||
RUN update-java-alternatives -s java-1.8.0-openjdk-amd64 | ||
|
||
|
||
# Spark dependencies | ||
ENV APACHE_SPARK_VERSION 1.6.0 | ||
RUN apt-get update && apt-get install -yq --no-install-recommends wget | ||
|
||
RUN apt-get -y update && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN cd /tmp && \ | ||
wget -q http://d3kbcqa49mib13.cloudfront.net/spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6.tgz && \ | ||
echo "439fe7793e0725492d3d36448adcd1db38f438dd1392bffd556b58bb9a3a2601 *spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6.tgz" | sha256sum -c - && \ | ||
tar xzf spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6.tgz -C /usr/local && \ | ||
rm spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6.tgz | ||
RUN cd /usr/local && ln -s spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6 spark | ||
|
||
|
||
# apache toree | ||
ENV TOREE_VERSION 0.1.0.dev6 | ||
RUN pip install toree===${TOREE_VERSION} | ||
RUN jupyter toree install | ||
|
||
|
||
|
||
|
||
|
||
#Eclair JS | ||
ENV ECLAIRJS_VERSION 0.4 | ||
|
||
RUN wget -q http://repo2.maven.org/maven2/org/eclairjs/eclairjs-nashorn/${ECLAIRJS_VERSION}/eclairjs-nashorn-${ECLAIRJS_VERSION}-jar-with-dependencies.jar && \ | ||
mkdir -p /opt/nashorn/lib && \ | ||
mv eclairjs-nashorn-${ECLAIRJS_VERSION}-jar-with-dependencies.jar /opt/nashorn/lib/eclairjs.jar | ||
|
||
|
||
#kernel.json | ||
COPY kernel.json /usr/local/share/jupyter/kernels/eclair/ | ||
|
||
# data for examples | ||
COPY examples/ /tmp/ | ||
|
||
CMD ["jupyter", "notebook", "--no-browser", "--NotebookApp.ip=0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"display_name": "Spark 1.6.0 (Javascript)", | ||
"language": "javascript", | ||
"argv": [ | ||
"/usr/local/share/jupyter/kernels/apache_toree_scala/bin/run.sh", | ||
"--interpreter-plugin", | ||
"eclair:org.eclairjs.nashorn.JavascriptInterpreter", | ||
"--default-interpreter", | ||
"eclair", | ||
"--nosparkcontext", | ||
"--profile", | ||
"{connection_file}" | ||
], | ||
"env": { | ||
"SPARK_OPTS": "--jars file:/opt/nashorn/lib/eclairjs.jar", | ||
"SPARK_HOME": "/usr/local/spark" | ||
}, | ||
"codemirror_mode": "scala" | ||
} |