-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (34 loc) · 1.25 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
FROM jupyter/minimal-notebook:7f1482f5a136
MAINTAINER Sahil Jajodia <[email protected]>
USER root
RUN conda install python=3.6
RUN apt-get update
RUN apt-get -y install git curl
RUN apt-get -y install \
krb5-user git curl openjdk-8-jdk
RUN pip uninstall -y tornado \
nbconvert
RUN pip install \
jupyter_nbextensions_configurator \
kubernetes==9.0.0 \
sendgrid \
python-dotenv \
pyspark==2.4.0 \
nbconvert==5.3.1 \
tornado==4.2 \
python-openstackclient==3.12.0 \
python-magnumclient \
openstacksdk==0.17.2
RUN npm install -g yarn
RUN rm /bin/sh && \
ln -s /bin/bash /bin/sh
RUN mkdir /home/jovyan/switch_cluster
WORKDIR /Users/sahiljajodia/SWAN/k8s-selection
COPY k8s-selection /home/jovyan/k8s-selection/
RUN cd /home/jovyan/k8s-selection && \
pip install . && \
jupyter nbextension install --py --system k8sselection && \
jupyter nbextension enable --py --system k8sselection && \
jupyter nbextensions_configurator enable --system
RUN mkdir -p /home/jovyan/.ipython/profile_default/ && \
printf "c.InteractiveShellApp.extensions.append('k8sselection.kernelextension')\n" > /home/jovyan/.ipython/profile_default/ipython_kernel_config.py