Skip to content
Snippets Groups Projects
Commit 5993a023 authored by Eleni Mathioulaki's avatar Eleni Mathioulaki
Browse files

feat: skip git user config setup on the image

the script is created and called on container startup, to separate the base image itself from the jupyterhub service configuration as much as possible
parent a7ab31be
No related branches found
No related tags found
No related merge requests found
Pipeline #62904 skipped with stage
......@@ -71,10 +71,6 @@ RUN echo "* - core 0" >> /etc/security/limits.conf
# allow the script to fail (because of symlinks) without failing the build (TODO: fix)
RUN sed -i 's/set -e/set +e/' $(which 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 /opt/conda/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