senaite / senaite.docker

SENAITE Docker Container
GNU General Public License v2.0
49 stars 40 forks source link

fatal: detected dubious ownership in repository #17

Closed RML-IAEA closed 1 year ago

RML-IAEA commented 1 year ago

Received the following error message when using senaite.docker latest:

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them                             0.0s
PS C:\Users\nael_lab\Documents\GitHub\senaite.docker\latest_windows> cd C:\Users\nael_lab\Documents\GitHub\iaea.lims\docker
PS C:\Users\nael_lab\Documents\GitHub\iaea.lims\docker> docker-compose -f develop-compose.yml up                           app.spotli
[+] Running 1/1t'.
 - Container instance  Recreated                                                                                                 0.1s
Attaching to instance: Cloned 'senaite.app.listing' with git using branch '2.x' from 'https://github.com/senaite/senaite.app.listing.
instance  | Creating directory '/home/senaite/buildout-cache/downloads'.
instance  | mr.developer: Queued 'iaea.lims' for checkout.g branch '2.x' from 'https://github.com/senaite/senaite.lims.git'.
instance  | mr.developer: Queued 'senaite.app.listing' for checkout.
instance  | mr.developer: Queued 'senaite.app.spotlight' for checkout.
instance  | mr.developer: Queued 'senaite.app.supermodel' for checkout.
instance  | mr.developer: Queued 'senaite.core' for checkout.
instance  | mr.developer: Queued 'senaite.databox' for checkout.
instance  | mr.developer: Queued 'senaite.impress' for checkout.
instance  | mr.developer: Queued 'senaite.jsonapi' for checkout.
instance  | mr.developer: Queued 'senaite.lims' for checkout.
instance  | mr.developer: Filesystem package 'iaea.lims' doesn't need a checkout.
instance  | mr.developer: Skipped checkout of existing package 'senaite.app.listing'.
instance  | mr.developer: Skipped checkout of existing package 'senaite.app.spotlight'.
instance  | mr.developer: Skipped checkout of existing package 'senaite.app.supermodel'.
instance  | mr.developer: Skipped checkout of existing package 'senaite.core'.
instance  | mr.developer: Skipped checkout of existing package 'senaite.databox'.
instance  | mr.developer: git remote of 'senaite.jsonapi' failed.
instance  | mr.developer: fatal: detected dubious ownership in repository at '/home/senaite/senaitelims/src/senaite.jsonapi'
instance  | mr.developer: To add an exception for this directory, call:
instance  | mr.developer:
instance  | mr.developer:       git config --global --add safe.directory /home/senaite/senaitelims/src/senaite.jsonapi
instance  | mr.developer:
instance  | mr.developer: git remote of 'senaite.lims' failed.
instance  | mr.developer: fatal: detected dubious ownership in repository at '/home/senaite/senaitelims/src/senaite.lims'
instance  | mr.developer: To add an exception for this directory, call:
instance  | mr.developer:
instance  | mr.developer:       git config --global --add safe.directory /home/senaite/senaitelims/src/senaite.lims
instance  | mr.developer:
instance  | mr.developer: git remote of 'senaite.impress' failed.
instance  | mr.developer: fatal: detected dubious ownership in repository at '/home/senaite/senaitelims/src/senaite.impress'
instance  | mr.developer: To add an exception for this directory, call:
instance  | mr.developer:
instance  | mr.developer:       git config --global --add safe.directory /home/senaite/senaitelims/src/senaite.impress
instance  | mr.developer:
instance  | mr.developer: There have been errors, see messages above.
instance exited with code 1

This error message does not appear when using senaite.docker 2.3.

ramonski commented 1 year ago

This should be fixed with https://github.com/senaite/senaite.docker/commit/6634bd7e99cd779544de244665fd33d9569cb0d5