-
Notifications
You must be signed in to change notification settings - Fork 38
/
Dockerfile
54 lines (34 loc) · 1.6 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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.dev8
RUN pip install toree===${TOREE_VERSION}
RUN jupyter toree install
#Eclair JS
ENV ECLAIRJS_VERSION 0.7
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"]