-
Notifications
You must be signed in to change notification settings - Fork 150
/
Copy pathDockerfile
40 lines (27 loc) · 1.34 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
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
FROM jupyter/pyspark-notebook
MAINTAINER Jupyter Project <[email protected]>
USER root
# Steve J.South [NamJungGu] <[email protected]> ###########################################
#RUN echo $NB_USER:nowage | chpasswd
#RUN echo $NB_USER password: nowage
RUN chmod 777 /etc/sudoers
RUN echo "$NB_USER ALL=(ALL) NOPASSWD: ALL">>/etc/sudoers
RUN chmod 440 /etc/sudoers
#RUN echo "export SPARK_HOME=/usr/local/spark">>/home/$NB_USER/.bashrc
RUN echo "export PATH=\$PATH:\$SPARK_HOME/bin:\$SPARK_HOME/sbin">>/home/$NB_USER/.bashrc
RUN echo "export PYTHONPATH=\$SPARK_HOME/python:\$SPARK_HOME/python/lib/py4j-0.10.7-src.zip">>/home/$NB_USER/.bashrc
RUN echo "export MESOS_NATIVE_LIBRARY=/usr/local/lib/libmesos.so">>/home/$NB_USER/.bashrc
#RUN echo "export SPARK_OPTS='--driver-java-options=-Xms1024M --driver-java-options=-Xmx4096M --driver-java-options=-Dlog4j.logLevel=info'">>/home/$NB_USER/.bashrc
RUN chown $NB_USER -R /home/$NB_USER
###############################################################################
COPY ./install.sh /
RUN chmod 755 /install.sh
RUN bash /install.sh
RUN mkdir /notebooks
COPY ./VersionCheck.ipynb /notebooks
RUN chown $NB_USER -R /notebooks
USER $NB_USER
WORKDIR "/notebooks"
# CMD ["/run_jupyter.sh", "--allow-root"]