Sign inSign up

dtgilles/gitolite

By dtgilles

•Updated almost 6 years ago

Git container based on dtgilles/sshgw.

Image
0

1.7K

dtgilles/gitolite repository overview

⁠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 keyexample valuecomment
UserDir/data/user(see dtgilles/sshgw)
HomeBase/data/home(see dtgilles/sshgw)
HostKeys/data/sshd_keys(see dtgilles/sshgw)
SSHD_OPTS-eadditional options for ssh daemon (log to stdout)
GIT_DATA/data/gitrepository storage location
TRUST_HOSTStrusted.comhostname ot put in .ssh/known_hosts file
SSH_KEYssh-rsa ...key of the first administrator (used for creation of admin repository)
EnableFeatureDfeatures to enable (in this case "delete repositories"), see http://gitolite.com/gitolite/rc.html⁠
DisableFeaturedaemon gitwebfeatures 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!!

Tag summary

Content type

Image

Digest

Size

91.7 MB

Last updated

almost 6 years ago

docker pull dtgilles/gitolite