Fix #269, NB_UID regression

Workaround docker / aufs permission problems
This commit is contained in:
Peter Parente
2016-10-11 21:29:15 -05:00
parent 0a6620e60f
commit 3e0eb813cb
2 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,6 @@ USER $NB_USER
# Setup jovyan home directory # Setup jovyan home directory
RUN mkdir /home/$NB_USER/work && \ RUN mkdir /home/$NB_USER/work && \
mkdir /home/$NB_USER/.jupyter && \ mkdir /home/$NB_USER/.jupyter && \
mkdir -p -m 700 /home/$NB_USER/.local/share/jupyter && \
echo "cacert=/etc/ssl/certs/ca-certificates.crt" > /home/$NB_USER/.curlrc echo "cacert=/etc/ssl/certs/ca-certificates.crt" > /home/$NB_USER/.curlrc
# Install conda as jovyan # Install conda as jovyan

View File

@@ -50,8 +50,9 @@ RUN conda config --add channels r && \
# to the system share location. Avoids problems with runtime UID change not # to the system share location. Avoids problems with runtime UID change not
# taking effect properly on the .local folder in the jovyan home dir. # taking effect properly on the .local folder in the jovyan home dir.
RUN julia -e 'Pkg.add("IJulia")' && \ RUN julia -e 'Pkg.add("IJulia")' && \
mv /home/$NB_USER/.local/share/jupyter/kernels/julia* $CONDA_DIR/share/jupyter/kernels/ && \ mv $HOME/.local/share/jupyter/kernels/julia* $CONDA_DIR/share/jupyter/kernels/ && \
chmod -R go+rx $CONDA_DIR/share/jupyter chmod -R go+rx $CONDA_DIR/share/jupyter && \
rm -rf $HOME/.local
# Show Julia where conda libraries are # Show Julia where conda libraries are
# Add essential packages # Add essential packages