Public | Automated Build

Last pushed: 11 days ago
Short Description
Git container based on dtgilles/sshgw.
Full Description

docker-gitolite

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!

status

This is currently a developer preview!

configuration

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!!

Docker Pull Command
Owner
dtgilles
Source Repository

Comments (0)