-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
53 lines (50 loc) · 1.65 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
FROM jupyter/scipy-notebook:5811dcb711ba
RUN conda install -y -q -c anaconda -c conda-forge \
basemap \
cartopy \
folium \
geopandas \
netcdf4 \
nb_conda_kernels \
pydap \
pydrive \
shapely \
xarray \
xlsxwriter && \
conda install --quiet --yes \
'ipyleaflet=0.9.0' \
'altair=2.1.0' \
'vega_datasets=0.5.0' \
'bqplot=0.10.5' \
'nbdime=1.0.1' \
'palettable=3.1.1' \
'earthengine-api=0.1.143' \
&& \
conda clean -tipsy && \
jupyter nbextension enable --py widgetsnbextension --sys-prefix && \
jupyter labextension install --no-build [email protected] && \
jupyter labextension install --no-build @jupyter-widgets/[email protected] && \
jupyter labextension install --no-build bqplot && \
jupyter labextension install --no-build jupyterlab-toc && \
jupyter lab build && \
pip install hone tables h5pyd && \
npm cache clean --force && \
rm -rf $CONDA_DIR/share/jupyter/lab/staging && \
rm -rf /home/$NB_USER/.cache/yarn && \
rm -rf /home/$NB_USER/.node-gyp && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
RUN mkdir -p /tmp/nexuscli && \
cd /tmp/nexuscli && \
git init && \
git remote add -f origin https://github.com/apache/incubator-sdap-nexus && \
git config core.sparseCheckout true && \
echo "client" >> .git/info/sparse-checkout && \
git pull origin master && \
cd client && \
python setup.py install && \
pip install -r requirements.txt
COPY . ${HOME}
USER root
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}