I've got Gitlab up and running ( meaning I was able to add a new Github remote to my Mirrors group using the gitlab-mirrors.sh script below ).
But every time I try to run another command I get:
ϟ ./gitlab-mirrors.sh ls
chown: /data/Mirrors/project-x/objects/pack/pack-dca3292bf5a38f06677b52995ebf594a2b3dd4d5.idx: Permission denied
chown: /data/Mirrors/project-x/objects/pack/pack-dca3292bf5a38f06677b52995ebf594a2b3dd4d5.pack: Permission denied
contents of gitlab-mirrors.sh:
docker run --rm -i \
-v $(dirname $SSH_AUTH_SOCK):$(dirname $SSH_AUTH_SOCK) \
-v "${PWD}/config:/config" \
-v "${PWD}/mirrors:/data/Mirrors" \
-e SSH_AUTH_SOCK=$SSH_AUTH_SOCK \
-e GITLAB_MIRROR_GITLAB_UID=1000 \
-e GITLAB_MIRROR_GITLAB_USER=gitmirror \
-e GITLAB_MIRROR_GITLAB_NAMESPACE=Mirrors \
-e GITLAB_MIRROR_GITLAB_URL=http://my-gitlab.com \
quay.io/klowner/gitlab-mirrors:latest ${@:1}
When I remove those files I can run for example update one more time, but the second run I will see the same problem again.
I've got Gitlab up and running ( meaning I was able to add a new Github remote to my Mirrors group using the
gitlab-mirrors.shscript below ).But every time I try to run another command I get:
contents of
gitlab-mirrors.sh:When I remove those files I can run for example
updateone more time, but the second run I will see the same problem again.