-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
100 lines (80 loc) · 2.18 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
FROM python:3.9.1
RUN apt-get update
RUN apt-get install zip \
octave \
#octave-odepkg \
octave-control \
octave-image \
octave-io \
octave-quaternion \
octave-signal \
gnuplot \
r-base r-base-dev libzmq3-dev -y \
nodejs -y \
pandoc \
texlive-xetex \
texlive-fonts-recommended \
texlive-generic-recommended -y
RUN curl -sL https://deb.nodesource.com/setup_15.x | bash -
RUN apt-get install -y nodejs
RUN wget https://cmake.org/files/v3.19/cmake-3.19.2-Linux-x86_64.sh \
&& chmod 775 ./cmake-3.19.2-Linux-x86_64.sh \
&& ./cmake-3.19.2-Linux-x86_64.sh --skip-license
RUN pip3 install --upgrade pip
RUN pip3 install \
jupyterhub \
notebook \
jupyterlab-server \
jupyterlab \
numpy \
pandas \
ipywidgets \
traitlets \
matplotlib \
scipy \
bqplot \
octave_kernel \
sympy \
pytz \
scikit-aero \
xlrd \
ipyvolume \
h5py \
pyzmq \
ipyfilechooser \
jax \
jaxlib \
uncertainties \
nbconvert \
xarray \
seaborn \
jupyter-book \
jhsingle-native-proxy \
xeus-python \
ipympl \
ipyleaflet \
mplleaflet \
gpxpy
RUN pip3 install voila
RUN pip3 install cvxpy
RUN pip3 install torch===1.7.1 torchvision===0.8.2 -f https://download.pytorch.org/whl/torch_stable.html
#RUN pip3 install https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tarball/master
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager
RUN jupyter labextension install bqplot
RUN jupyter serverextension enable jupyterlab
RUN jupyter labextension install @jupyterlab/debugger
RUN git clone https://github.com/acelere/IRKernel_install_script
RUN Rscript ./IRKernel_install_script/rk_install.r
# create a user, since we don't want to run as root
RUN useradd -m jovyan
RUN usermod -a -G users jovyan
# Add user to staff to enable R packages install
RUN usermod -a -G staff jovyan
ENV HOME=/home/jovyan
WORKDIR $HOME
USER jovyan
RUN mkdir /home/jovyan/work
RUN mkdir /home/jovyan/work/data
RUN chown -R jovyan /home/jovyan/work
RUN git -C /home/jovyan clone https://github.com/acelere/Flight-Test-Analysis-Tool
CMD ["jupyterhub-singleuser"]