mdsh.com/wiki


RecentChanges

TextFormattingRules
AllWikiTopics
OrphanedWikiTopics
ToDoWikiTopics
WikiLockList
RSS
Export2HTML

WikiSearch

SetUsername

StartingPoints
Home
gitolite

How I installed gitolite on a RaspberryPi


Mount my git repositories

Install autofs
$ sudo  apt-get install autofs
Configure autofs to mount a share from a nas
$ sudo vim.tiny /etc/auto.misc
nas3.git        -fstype=nfs4,rw,soft,intr,nosuid,rsize=8192,wsize=8192,timeo=14,async,noatime nas3:/media/nas/git
Configure autofs to read auto.misc
$ sudo vim.tiny /etc/auto.master
/misc   /etc/auto.misc
Restart autofs (only needed because auto.master was changed)
$ sudo service autofs restart
Test
$ sudo ls -l /misc/nas3.git/

Install gitolite version 3

$ sudo apt-get -y install gitolite3

Create git user and configure

Add the git user
$ sudo adduser --system --shell /bin/bash --group --disabled-password --home /home/git git
Make the repositories folder
$ sudo su - git
$ mkdir repositories
$ exit
Remount my git repositories
$ sudo vim.tiny /etc/fstab
/misc/nas3.git   /home/git/repositories     none bind       0 3
$ sudo mount -a
Test
$ sudo su - git
$ ls repositories

Setup gitolite

I've used gitolite before, so this is the minimum I need to make it run again
$ sudo su - git
$ gitolite setup -pk /tmp/mdsh.pub
Then go to my gitolite-admin repo and push my current setup into the gitolite server
$ cd ~/git/gitolite-admin
$ git push -f

See also



gitolite is mentioned on: Linux


VeryQuickWiki Version 2.8.1 | Admin

All contents copyright mdsh.com (C) 2011-2018.