Hi, git-server-docker is working well so far, but I'm unsure how the REPOSITORIES_HOME_LINK feature is supposed to work. I noticed the link is created in the home directory, but when cloning, only the /srv/git directory is factored in. What am I doing wrong?
git-server:
image: rockstorm/git-server
environment:
SSH_AUTH_METHODS: "publickey"
REPOSITORIES_HOME_LINK: /srv/git
volumes:
- ./config/git-repos:/srv/git
- ./config/ssh/authorized_keys:/home/git/.ssh/authorized_keys
./config/git-repos has the following structure:
tree -a
.
└── projects
└── snippets
└── .git
...
12 directories, 17 files
GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa" git clone ssh://git@172.17.0.3/projects/snippets
Cloning into 'snippets'...
fatal: '/snippets' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Hi,
git-server-dockeris working well so far, but I'm unsure how theREPOSITORIES_HOME_LINKfeature is supposed to work. I noticed the link is created in the home directory, but when cloning, only the/srv/gitdirectory is factored in. What am I doing wrong?./config/git-reposhas the following structure:tree -a . └── projects └── snippets └── .git ... 12 directories, 17 files