gitlabhq/README.md

127 lines
2.3 KiB
Markdown
Raw Normal View History

2011-11-15 15:41:33 +01:00
# Welcome to GitLab [![build status](https://secure.travis-ci.org/gitlabhq/gitlabhq.png)](https://secure.travis-ci.org/gitlabhq/gitlabhq)
GitLab is a free Project/Repository management application
2011-11-25 23:30:51 +01:00
<img src="http://gitlabhq.com/front.png" width="900" height="471">
2011-11-15 15:41:33 +01:00
## Application details
rails 3.1
2011-12-05 18:54:53 +01:00
works only with gitolite
2011-11-15 15:41:33 +01:00
sqlite as default a database
## Requirements
* ruby 1.9.2
* sqlite
* git
2011-12-05 18:54:53 +01:00
* gitolite
2011-11-15 15:41:33 +01:00
* ubuntu/debian
* pygments lib - `sudo easy_install pygments`
## Install Project
```bash
git clone git://github.com/gitlabhq/gitlabhq.git
cd gitlabhq/
# install this library first
2011-12-04 00:52:19 +01:00
sudo pip install pygments
sudo apt-get install python-dev
2011-11-15 15:41:33 +01:00
sudo gem install bundler
bundle install --without development test
2011-11-15 15:41:33 +01:00
bundle exec rake db:setup RAILS_ENV=production
# create admin user
# login....admin@local.host
# pass.....5iveL!fe
bundle exec rake db:seed_fu RAILS_ENV=production
```
2011-12-05 18:54:53 +01:00
Install gitolite (with repo umask 0007), edit `config/gitlab.yml` and start server
2011-11-15 15:41:33 +01:00
```bash
2011-11-25 23:30:51 +01:00
bundle exec rails s -e production
2011-11-15 15:41:33 +01:00
```
2011-12-05 21:08:21 +01:00
## Install Gitolite
2011-11-15 15:41:33 +01:00
```bash
2011-12-05 21:08:21 +01:00
# create git user
2011-11-15 15:41:33 +01:00
sudo adduser \
--system \
--shell /bin/sh \
--gecos 'git version control' \
--group \
--disabled-password \
--home /home/git \
git
2011-12-04 00:52:19 +01:00
# Add your user to git group
usermod -a -G git gitlabhq_user_name
```
2011-12-05 21:08:21 +01:00
### !!! IMPORTANT !!! Gitolite should have repository umask 0007 so users from git group has read/write access to repo
```bash
# copy your pub key to git home
cp ~/.ssh/id_rsa.pub /home/git/rails.pub
2011-12-04 00:52:19 +01:00
2011-12-05 21:08:21 +01:00
# enter user git
sudo -i -u git
# clone gitolite
git clone git://github.com/gitlabhq/gitolite
# install gitolite
gitolite/src/gl-system-install
# Setup (Dont forget to set umask as 0007!!)
gl-setup ~/rails.pub
```
2011-12-04 00:52:19 +01:00
2011-12-05 18:54:53 +01:00
2011-11-15 15:41:33 +01:00
## Install ruby 1.9.2
```bash
2011-12-06 00:03:05 +01:00
sudo aptitude install git-core openssh-server curl gcc checkinstall libxml2-dev libxslt-dev sqlite3 libsqlite3-dev libcurl4-openssl-dev libreadline5-dev libc6-dev libssl-dev libmysql++-dev make build-essential zlib1g-dev
2011-11-15 15:41:33 +01:00
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
tar xfvz ruby-1.9.2-p290.tar.gz
cd ruby-1.9.2-p290
./configure
make
sudo checkinstall -D
sudo gem update --system
echo "gem: --no-rdoc --no-ri" > ~/.gemrc
```
## Community
[Google Group](https://groups.google.com/group/gitlabhq)
## Contribute
We develop project on our private server.
Want to help? Contact us on twitter or email to become a team member.