Skip to content

Commit

Permalink
removes 'dubious ownership' error when trying to access git repositor…
Browse files Browse the repository at this point in the history
…ies with a different user'
  • Loading branch information
lauraschauer committed Aug 16, 2024
1 parent 3be03fb commit c7dbd7f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions prospector/docker/worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,11 @@ VOLUME [ "/data_sources/reports" ]

RUN chmod +x /usr/local/bin/start_rq_worker.sh
#CMD tail -f /dev/null

# Create directory for gitcache and run git config command to avoid 'dubious ownership' error
RUN mkdir -p /tmp/gitcache && \
cd /tmp/gitcache && \
git config --global --add safe.directory '*'


ENTRYPOINT ["/usr/local/bin/start_rq_worker.sh"]

0 comments on commit c7dbd7f

Please sign in to comment.