This is an old revision of the document!


Git Repository installation

Packages

apt-get install git

Configuration

Edit /etc/vhffs/vhffs.conf

<git>
   # Use this module or not
   activate        =       yes

   # URL to the svnweb
   gitweb_url      =       "http://gitweb.domain.com"

   # From: of emails sent by git commit notifier
   notify_from     =       git@domain.com

   # URL to the documentation (optional)
   url_doc         =       http://help.domain.net/git
</git>

Then, activate the bots with a cron file, for example, /etc/cron.d/vhffs

#*/10   *       * * *   root    ionice -c3 nice -n 19 /usr/lib/vhffs/bots/git_create.pl
#*/10   *       * * *   root    ionice -c3 nice -n 19 /usr/lib/vhffs/bots/git_delete.pl
#*/10   *       * * *   root    ionice -c3 nice -n 19 /usr/lib/vhffs/bots/git_public.pl

Initiate a new repository

Create a repository through the panel.

Git using SSH authentication needs full NSS support, please check the local NSS database is filled up with passwd and shadow data.

We recommends you to:

  • Create a chroot for Git.
  • Not install VHFFS in this chroot.
  • Fill the NSS database from outside the chroot
  • Use a restricted shell service that allows only running the subversion binary, you will find in the VHFFS source tree a dummy shell called tuxshell in the /vhffs-shells directory.
  • Only mount bind, or nfs mount, or whatever mount, the /data/git directory in the chroot.

GitWeb

Gitweb doesn't require a generated configuration file, so there is no VHFFS bot to create it ;-)

doc/installationguide/git-service.1302648577.txt.gz · Last modified: 2011/04/12 22:49 by gradator
Recent changes RSS feed Creative Commons License Donate Minima Template by Wikidesign Driven by DokuWiki