Skip to content

Commit

Permalink
Make git accept funny permissions on /source
Browse files Browse the repository at this point in the history
The source code is live-mounted in the Docker development container on
/source, but recently Git has started to complain about funny
permissions on this directory when running git operations inside the
container (which is always a problem, one way or the other).

Inside the container we want Git to trust /source
  • Loading branch information
lunkwill42 committed May 22, 2023
1 parent 72a94db commit 87957ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ RUN pip install ${CUSTOM_PIP}

COPY tools/docker/full-nav-restore.sh /usr/local/sbin/full-nav-restore.sh

# Set up for mounting live source code from git repo at /source
RUN git config --global --add safe.directory /source
VOLUME ["/source"]
ENV DJANGO_SETTINGS_MODULE nav.django.settings
EXPOSE 80
Expand Down

0 comments on commit 87957ad

Please sign in to comment.