Git container based on dtgilles/sshgw.
1.7K
This gitolite (ssh) docker container is based on https://github.com/dtgilles/sshgw. So you can use it to build a combined hopping station and git repository. -- Thanks to https://github.com/miracle2k for all the inspiration!
This is currently a developer preview!
This container introduces a new environment variable: Directory GIT_DATA hosts all the repository data as well as private ssh keys (for mirror feature). It should be on an external volume.
A typical setup would be:
| environment key | example value | comment |
|---|---|---|
UserDir | /data/user | (see dtgilles/sshgw) |
HomeBase | /data/home | (see dtgilles/sshgw) |
HostKeys | /data/sshd_keys | (see dtgilles/sshgw) |
SSHD_OPTS | -e | additional options for ssh daemon (log to stdout) |
GIT_DATA | /data/git | repository storage location |
TRUST_HOSTS | trusted.com | hostname ot put in .ssh/known_hosts file |
SSH_KEY | ssh-rsa ... | key of the first administrator (used for creation of admin repository) |
EnableFeature | D | features to enable (in this case "delete repositories"), see http://gitolite.com/gitolite/rc.html |
DisableFeature | daemon gitweb | features to disable, see http://gitolite.com/gitolite/rc.html |
where /data mounted via --volumes-from option. Per Default there is a role named OWNERS that could be used to self-administer repository ownership. If you don't like that, you could disable that extending DisableFeature list by OWNERS.
Don't forget to backup /data!!
Content type
Image
Digest
Size
91.7 MB
Last updated
almost 6 years ago
docker pull dtgilles/gitolite