Skip to content
Snippets Groups Projects
Commit 83e819c3 authored by Florian Deuerlein's avatar Florian Deuerlein
Browse files

Merge branch 'feature/prefill-git-commiter' into 'master'

Pre-fill git committer

See merge request jupyter/clb-jupyter-nb-images!26
parents 69040a68 60f83562
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,10 @@ RUN R --slave -e "IRkernel::installspec(name = 'ir363', displayname = 'R 3.6.3')
COPY base/fix-permissions /usr/local/bin/fix-permissions
RUN chmod +x /usr/local/bin/fix-permissions
# copy user setup file
COPY base/user_setup.sh /opt/app-root/etc/
RUN chmod +x /opt/app-root/etc/user_setup.sh
RUN fix-permissions /opt/app-root/ && \
fix-permissions /tmp/cache/ && \
fix-permissions /usr/local/share/jupyter/ && \
......
# user setup script
# set git config
if [ ! "$(git config --get user.name)" ]
then
git config --global --add user.name "${JUPYTERHUB_USER}"
fi
if [ ! "$(git config --get user.email)" ]
then
git config --global --add user.email "${JUPYTERHUB_USER_EMAIL}"
fi
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