Ensure anything under $HOME is always writable to group.

This commit is contained in:
Graham Dumpleton
2018-02-17 11:31:55 +11:00
parent c54800018c
commit 4d32b2182e
5 changed files with 24 additions and 9 deletions

View File

@@ -29,17 +29,22 @@ RUN conda install --quiet --yes \
'r-sparklyr=0.5*' \ 'r-sparklyr=0.5*' \
'r-rcurl=1.95*' && \ 'r-rcurl=1.95*' && \
conda clean -tipsy && \ conda clean -tipsy && \
fix-permissions $CONDA_DIR fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
# Apache Toree kernel # Apache Toree kernel
RUN pip install --no-cache-dir \ 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 \ 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 && \ 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 # Spylon-kernel
RUN conda install --quiet --yes 'spylon-kernel=0.4*' && \ RUN conda install --quiet --yes 'spylon-kernel=0.4*' && \
conda clean -tipsy && \ conda clean -tipsy && \
python -m spylon_kernel install --sys-prefix && \ 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

View File

@@ -71,7 +71,9 @@ RUN cd /tmp && \
$CONDA_DIR/bin/conda config --system --set show_channel_urls true && \ $CONDA_DIR/bin/conda config --system --set show_channel_urls true && \
$CONDA_DIR/bin/conda update --all --quiet --yes && \ $CONDA_DIR/bin/conda update --all --quiet --yes && \
conda clean -tipsy && \ 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 # Install Jupyter Notebook and Hub
RUN conda install --quiet --yes \ RUN conda install --quiet --yes \
@@ -82,7 +84,9 @@ RUN conda install --quiet --yes \
jupyter labextension install @jupyterlab/hub-extension@^0.8.0 && \ jupyter labextension install @jupyterlab/hub-extension@^0.8.0 && \
npm cache clean && \ npm cache clean && \
rm -rf $CONDA_DIR/share/jupyter/lab/staging && \ 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 USER root

View File

@@ -58,7 +58,8 @@ RUN conda config --system --append channels r && \
'r-crayon=1.3*' \ 'r-crayon=1.3*' \
'r-randomforest=4.6*' && \ 'r-randomforest=4.6*' && \
conda clean -tipsy && \ conda clean -tipsy && \
fix-permissions $CONDA_DIR fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
# Add Julia packages # Add Julia packages
# Install IJulia as jovyan and then move the kernelspec out # Install IJulia as jovyan and then move the kernelspec out

View File

@@ -50,7 +50,10 @@ RUN conda install --quiet --yes \
jupyter labextension install @jupyter-widgets/jupyterlab-manager@^0.33.1 && \ jupyter labextension install @jupyter-widgets/jupyterlab-manager@^0.33.1 && \
npm cache clean && \ npm cache clean && \
rm -rf $CONDA_DIR/share/jupyter/lab/staging && \ 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 # Install facets which does not have a pip or conda package at the moment
RUN cd /tmp && \ RUN cd /tmp && \
@@ -58,7 +61,8 @@ RUN cd /tmp && \
cd facets && \ cd facets && \
jupyter nbextension install facets-dist/ --sys-prefix && \ jupyter nbextension install facets-dist/ --sys-prefix && \
rm -rf facets && \ 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. # Import matplotlib the first time to build the font cache.
ENV XDG_CACHE_HOME /home/$NB_USER/.cache/ ENV XDG_CACHE_HOME /home/$NB_USER/.cache/

View File

@@ -9,4 +9,5 @@ RUN conda install --quiet --yes \
'tensorflow=1.3*' \ 'tensorflow=1.3*' \
'keras=2.0*' && \ 'keras=2.0*' && \
conda clean -tipsy && \ conda clean -tipsy && \
fix-permissions $CONDA_DIR fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER