-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
28 lines (20 loc) · 1017 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
FROM astronomycommons/ztf-hub-notebook:spark_extension_test
USER root
RUN mkdir -p /opt/sparkmanager \
&& chown -R $NB_UID:$NB_GID /opt/sparkmanager
USER $NB_UID
ENV SPARK_MANAGER_DIR /opt/sparkmanager
COPY sparkmanager $SPARK_MANAGER_DIR/sparkmanager
COPY setup.py $SPARK_MANAGER_DIR/.
#RUN git clone https://github.com/stevenstetzler/sparkmanager.git $SPARK_MANAGER_DIR \
RUN cd $SPARK_MANAGER_DIR \
&& python -m pip install .
ENV IPYTHONDIR /opt/conda/etc/ipython
RUN jupyter nbextension install sparkmanager --py --sys-prefix \
&& jupyter nbextension enable sparkmanager --py --sys-prefix \
&& jupyter serverextension enable sparkmanager --py --sys-prefix \
&& ipython profile create && echo "c.InteractiveShellApp.extensions.append('sparkmanager.kernelextension')" >> $(ipython profile locate default)/ipython_kernel_config.py
RUN jupyter nbextension list \
&& jupyter serverextension list
COPY local_cluster $SPARK_MANAGER_DIR/clusters/Local/.
COPY kube_cluster $SPARK_MANAGER_DIR/clusters/AWS/.