forked from big-data-europe/docker-spark-notebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (23 loc) · 957 Bytes
/
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
FROM bde2020/hadoop-base:1.1.0-hadoop2.8-java8
MAINTAINER Ivan Ermilov <[email protected]>
ENV APACHE_SPARK_VERSION 2.1.0
ENV APACHE_HADOOP_VERSION 2.8.0
RUN set -x \
&& curl -fSL "https://dl.dropboxusercontent.com/u/4882345/spark-notebook/spark-notebook-0.7.0-scala-2.11.8-spark-2.1.0-hadoop-2.8.0-with-hive.tar.gz" -o /tmp/spark-notebook.tgz \
&& tar -xzvf /tmp/spark-notebook.tgz -C /opt/ \
&& mv /opt/spark-notebook-* /opt/spark-notebook \
&& rm /tmp/spark-notebook.tgz
COPY run.sh /run.sh
RUN chmod a+x /run.sh
COPY application.conf /opt/spark-notebook/conf/
COPY clusters /opt/spark-notebook/conf/
COPY profiles /opt/spark-notebook/conf/
COPY jars /jars
RUN mkdir -p /data/resources
ENV NOTEBOOKS_DIR "/opt/spark-notebook/notebooks"
ENV RESOURCES_DIR "/data/resources"
ENV SPARK_MASTER "spark://spark-master:7077"
ENV SPARK_EXECUTOR_MEMORY "4G"
ENV EXTRA_CLASSPATH "/jars/*"
WORKDIR /opt/spark-notebook/
CMD ["/run.sh"]