Commit 4d32b218 authored by Graham Dumpleton's avatar Graham Dumpleton

Ensure anything under $HOME is always writable to group.

parent c5480001
......@@ -29,17 +29,22 @@ RUN conda install --quiet --yes \
'r-sparklyr=0.5*' \
'r-rcurl=1.95*' && \
conda clean -tipsy && \
fix-permissions $CONDA_DIR
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
# Apache Toree kernel
RUN pip install --no-cache-dir \
https://dist.apache.org/repos/dist/dev/incubator/toree/0.2.0/snapshots/dev1/toree-pip/toree-0.2.0.dev1.tar.gz \
&& \
jupyter toree install --sys-prefix && \
fix-permissions $CONDA_DIR
rm -rf /home/$NB_USER/.local && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
# Spylon-kernel
RUN conda install --quiet --yes 'spylon-kernel=0.4*' && \
conda clean -tipsy && \
python -m spylon_kernel install --sys-prefix && \
fix-permissions $CONDA_DIR
rm -rf /home/$NB_USER/.local && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
......@@ -71,7 +71,9 @@ RUN cd /tmp && \
$CONDA_DIR/bin/conda config --system --set show_channel_urls true && \
$CONDA_DIR/bin/conda update --all --quiet --yes && \
conda clean -tipsy && \
fix-permissions $CONDA_DIR
rm -rf /home/$NB_USER/.cache/yarn && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
# Install Jupyter Notebook and Hub
RUN conda install --quiet --yes \
......@@ -82,7 +84,9 @@ RUN conda install --quiet --yes \
jupyter labextension install @jupyterlab/hub-extension@^0.8.0 && \
npm cache clean && \
rm -rf $CONDA_DIR/share/jupyter/lab/staging && \
fix-permissions $CONDA_DIR
rm -rf /home/$NB_USER/.cache/yarn && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
USER root
......
......@@ -58,7 +58,8 @@ RUN conda config --system --append channels r && \
'r-crayon=1.3*' \
'r-randomforest=4.6*' && \
conda clean -tipsy && \
fix-permissions $CONDA_DIR
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
# Add Julia packages
# Install IJulia as jovyan and then move the kernelspec out
......
......@@ -50,7 +50,10 @@ RUN conda install --quiet --yes \
jupyter labextension install @jupyter-widgets/jupyterlab-manager@^0.33.1 && \
npm cache clean && \
rm -rf $CONDA_DIR/share/jupyter/lab/staging && \
fix-permissions $CONDA_DIR
rm -rf /home/$NB_USER/.cache/yarn && \
rm -rf /home/$NB_USER/.node-gyp && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
# Install facets which does not have a pip or conda package at the moment
RUN cd /tmp && \
......@@ -58,7 +61,8 @@ RUN cd /tmp && \
cd facets && \
jupyter nbextension install facets-dist/ --sys-prefix && \
rm -rf facets && \
fix-permissions $CONDA_DIR
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
# Import matplotlib the first time to build the font cache.
ENV XDG_CACHE_HOME /home/$NB_USER/.cache/
......
......@@ -9,4 +9,5 @@ RUN conda install --quiet --yes \
'tensorflow=1.3*' \
'keras=2.0*' && \
conda clean -tipsy && \
fix-permissions $CONDA_DIR
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment