fixed adding jupyter config file

This commit is contained in:
Christoph Schranz 2020-02-26 09:22:01 +01:00
parent d952ecfe0c
commit 52901ba767
3 changed files with 8 additions and 4 deletions

View File

@ -429,9 +429,10 @@ RUN conda install -c conda-forge jupyter_contrib_nbextensions && \
jupyter nbextension enable codefolding/main jupyter nbextension enable codefolding/main
RUN jupyter labextension install @ijmbarr/jupyterlab_spellchecker RUN jupyter labextension install @ijmbarr/jupyterlab_spellchecker
# Copying config and fix permissions
COPY jupyter_notebook_config.json /etc/jupyter/
RUN fix-permissions /home/$NB_USER RUN fix-permissions /home/$NB_USER
# Switch back to jovyan to avoid accidental container runs as root # Switch back to jovyan to avoid accidental container runs as root
USER $NB_UID USER $NB_UID
COPY jupyter_notebook_config.json /etc/jupyter/

View File

@ -72,7 +72,12 @@ cat src/Dockerfile.usefulpackages >> $DOCKERFILE
# Copy the demo notebooks and change permissions # Copy the demo notebooks and change permissions
cp -r extra/Getting_Started data cp -r extra/Getting_Started data
chmod -R 755 data/ chmod -R 755 data/
# Copying config and fix permissions
cp src/jupyter_notebook_config.json .build/ cp src/jupyter_notebook_config.json .build/
echo >> $DOCKERFILE
echo "COPY jupyter_notebook_config.json /etc/jupyter/" >> $DOCKERFILE
#cp $(find $(dirname $DOCKERFILE) -type f | grep -v $STACKS_DIR | grep -v .gitkeep) . #cp $(find $(dirname $DOCKERFILE) -type f | grep -v $STACKS_DIR | grep -v .gitkeep) .
echo "GPU Dockerfile was generated sucessfully in file ${DOCKERFILE}." echo "GPU Dockerfile was generated sucessfully in file ${DOCKERFILE}."

View File

@ -40,8 +40,6 @@ RUN conda install -c conda-forge jupyter_contrib_nbextensions && \
jupyter nbextension enable codefolding/main jupyter nbextension enable codefolding/main
RUN jupyter labextension install @ijmbarr/jupyterlab_spellchecker RUN jupyter labextension install @ijmbarr/jupyterlab_spellchecker
# Copying config and fix permissions
COPY jupyter_notebook_config.json /etc/jupyter/
RUN fix-permissions /home/$NB_USER RUN fix-permissions /home/$NB_USER
# Switch back to jovyan to avoid accidental container runs as root # Switch back to jovyan to avoid accidental container runs as root