-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathDockerfile
49 lines (33 loc) · 1.29 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
# Copyright (c) IBM.
FROM jupyter/base-notebook
RUN pip uninstall -y notebook
RUN pip install notebook==4.3.0
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 2.0.2
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.7.tgz && \
tar xzf spark-${APACHE_SPARK_VERSION}-bin-hadoop2.7.tgz -C /usr/local && \
rm spark-${APACHE_SPARK_VERSION}-bin-hadoop2.7.tgz
RUN cd /usr/local && ln -s spark-${APACHE_SPARK_VERSION}-bin-hadoop2.7 spark
# apache toree
#ENV TOREE_VERSION 0.1.0.dev8
#RUN pip install toree===${TOREE_VERSION}
#RUN jupyter toree install
COPY incubator-toree/dist/toree /toree
#Eclair JS
ENV ECLAIRJS_VERSION 0.10.2
#kernel.json
COPY kernel.json /usr/local/share/jupyter/kernels/toree/
# data for examples
COPY examples/ /tmp/
CMD ["jupyter", "notebook", "--no-browser", "--NotebookApp.ip=0.0.0.0", "--NotebookApp.token=''"]