From dc908ed47f159d8d557341b3ea4d3e757235f176 Mon Sep 17 00:00:00 2001 From: Yusaku Mandai Date: Sat, 9 Sep 2017 19:45:40 +0900 Subject: [PATCH 1/2] Change starting directory of scipy-notebook --- scipy-notebook/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scipy-notebook/Dockerfile b/scipy-notebook/Dockerfile index 1e57aee6..a3a2e90c 100644 --- a/scipy-notebook/Dockerfile +++ b/scipy-notebook/Dockerfile @@ -52,6 +52,8 @@ RUN git clone https://github.com/PAIR-code/facets.git WORKDIR facets RUN jupyter nbextension install facets-dist/ --sys-prefix +WORKDIR ~ + # Import matplotlib the first time to build the font cache. ENV XDG_CACHE_HOME /home/$NB_USER/.cache/ RUN MPLBACKEND=Agg python -c "import matplotlib.pyplot" && \ From 5ff64b45be8482c81f85230837388422aedd04ab Mon Sep 17 00:00:00 2001 From: Peter Parente Date: Sat, 9 Sep 2017 14:00:15 -0400 Subject: [PATCH 2/2] Fix facets install * Don't change WORKDIR * Fix permissions after install * Cleanup source tree --- scipy-notebook/Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scipy-notebook/Dockerfile b/scipy-notebook/Dockerfile index a3a2e90c..01c8d8cb 100644 --- a/scipy-notebook/Dockerfile +++ b/scipy-notebook/Dockerfile @@ -48,11 +48,13 @@ RUN conda install --quiet --yes \ jupyter nbextension enable --py widgetsnbextension --sys-prefix && \ fix-permissions $CONDA_DIR -RUN git clone https://github.com/PAIR-code/facets.git -WORKDIR facets -RUN jupyter nbextension install facets-dist/ --sys-prefix - -WORKDIR ~ +# Install facets which does not have a pip or conda package at the moment +RUN cd /tmp && \ + git clone https://github.com/PAIR-code/facets.git && \ + cd facets && \ + jupyter nbextension install facets-dist/ --sys-prefix && \ + rm -rf facets && \ + fix-permissions $CONDA_DIR # Import matplotlib the first time to build the font cache. ENV XDG_CACHE_HOME /home/$NB_USER/.cache/