Skip to content

Unsure how to use REPOSITORIES_HOME_LINK #16

@mikejholly

Description

@mikejholly

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions