-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathexamples.Dockerfile
29 lines (27 loc) · 1.31 KB
/
examples.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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Worked examples docker container
# Provides all worked examples from the FlowKit docs in a ready-to-go JupyterLab install
#
FROM quay.io/jupyter/scipy-notebook:ubuntu-22.04@sha256:dcd7b54180d19c28a3ef0175b61eafa9e29ab85876306954f2cc66a6b216a1ab
RUN rm -rf /home/$NB_USER/work
ARG SOURCE_VERSION=0+unknown
ENV SOURCE_VERSION=${SOURCE_VERSION}
ENV SOURCE_TREE=FlowKit-${SOURCE_VERSION}
COPY --chown=${NB_UID}:${NB_GID} docs/source/analyst/worked_examples/*.ipynb /home/$NB_USER/
COPY --chown=${NB_UID}:${NB_GID} docs/source/analyst/advanced_usage/worked_examples/*.ipynb /home/$NB_USER/
COPY flowmachine /${SOURCE_TREE}/flowmachine
COPY flowclient /${SOURCE_TREE}/flowclient
USER root
RUN cd /${SOURCE_TREE}/flowclient && python setup.py bdist_wheel && \
cd /${SOURCE_TREE}/flowmachine && python setup.py bdist_wheel && \
fix-permissions /${SOURCE_TREE}
USER $NB_UID
RUN pip install -q geopandas mapboxgl descartes \
/${SOURCE_TREE}/flowclient/dist/*.whl \
/${SOURCE_TREE}/flowmachine/dist/*.whl && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER && \
cd /home/$NB_USER/ && jupyter trust -y *