Skip to content
Newer
Older
100644 113 lines (72 sloc) 2.28 KB
9104535 @NARKOZ brand new README
NARKOZ authored Nov 15, 2011
1 # Welcome to GitLab [![build status](https://secure.travis-ci.org/gitlabhq/gitlabhq.png)](https://secure.travis-ci.org/gitlabhq/gitlabhq)
2
3 GitLab is a free Project/Repository management application
4
139a332 @randx updated readme
randx authored Nov 26, 2011
5
6 <img src="http://gitlabhq.com/front.png" width="900" height="471">
7
8
9104535 @NARKOZ brand new README
NARKOZ authored Nov 15, 2011
9 ## Application details
10
11 rails 3.1
3e58198 @randx version updated, gitosis removed
randx authored Dec 5, 2011
12 works only with gitolite
9104535 @NARKOZ brand new README
NARKOZ authored Nov 15, 2011
13 sqlite as default a database
14
15 ## Requirements
16
17 * ruby 1.9.2
18 * sqlite
19 * git
3e58198 @randx version updated, gitosis removed
randx authored Dec 5, 2011
20 * gitolite
9104535 @NARKOZ brand new README
NARKOZ authored Nov 15, 2011
21 * ubuntu/debian
22 * pygments lib - `sudo easy_install pygments`
23
24 ## Install Project
25
26 ```bash
27 git clone git://github.com/gitlabhq/gitlabhq.git
28
29 cd gitlabhq/
30
31 # install this library first
a41d576 @randx updated README
randx authored Dec 4, 2011
32 sudo pip install pygments
33 sudo apt-get install python-dev
9104535 @NARKOZ brand new README
NARKOZ authored Nov 15, 2011
34
35 # give your user access to remove git repo
36 # Ex.
37 # If you are going to use user 'gitlabhq' for rails server
38 # gitlabhq ALL = (git) NOPASSWD: /bin/rm" | sudo tee -a /etc/sudoers
39 #
40 echo "USERNAME ALL = (git) NOPASSWD: /bin/rm" | sudo tee -a /etc/sudoers
41
42 sudo gem install bundler
43
310f013 @nono Don't install development and test gems in production
nono authored Nov 24, 2011
44 bundle install --without development test
9104535 @NARKOZ brand new README
NARKOZ authored Nov 15, 2011
45
46 bundle exec rake db:setup RAILS_ENV=production
47
48 # create admin user
49 # login....admin@local.host
50 # pass.....5iveL!fe
51 bundle exec rake db:seed_fu RAILS_ENV=production
52 ```
53
3e58198 @randx version updated, gitosis removed
randx authored Dec 5, 2011
54 Install gitolite (with repo umask 0007), edit `config/gitlab.yml` and start server
9104535 @NARKOZ brand new README
NARKOZ authored Nov 15, 2011
55
56 ```bash
139a332 @randx updated readme
randx authored Nov 25, 2011
57 bundle exec rails s -e production
9104535 @NARKOZ brand new README
NARKOZ authored Nov 15, 2011
58 ```
59
a41d576 @randx updated README
randx authored Dec 3, 2011
60 ### Create git user
9104535 @NARKOZ brand new README
NARKOZ authored Nov 15, 2011
61
62 ```bash
63
64 sudo adduser \
65 --system \
66 --shell /bin/sh \
67 --gecos 'git version control' \
68 --group \
69 --disabled-password \
70 --home /home/git \
71 git
72
a41d576 @randx updated README
randx authored Dec 3, 2011
73
74 # Add your user to git group
75 usermod -a -G git gitlabhq_user_name
76
77 ```
78
79 ## Install Gitolite
80
81 ### !!! IMPORTANT !!! Gitolite umask should be 0007 so users from git group has read/write access to repo
82
9104535 @NARKOZ brand new README
NARKOZ authored Nov 15, 2011
83 ```
84
3e58198 @randx version updated, gitosis removed
randx authored Dec 5, 2011
85
9104535 @NARKOZ brand new README
NARKOZ authored Nov 15, 2011
86 ## Install ruby 1.9.2
87
88 ```bash
89 sudo aptitude install git-core 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
90
91 wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
92
93 tar xfvz ruby-1.9.2-p290.tar.gz
94
95 cd ruby-1.9.2-p290
96 ./configure
97 make
98 sudo checkinstall -D
99
100 sudo gem update --system
101
102 echo "gem: --no-rdoc --no-ri" > ~/.gemrc
103 ```
104
105 ## Community
106
107 [Google Group](https://groups.google.com/group/gitlabhq)
108
109 ## Contribute
110
111 We develop project on our private server.
112 Want to help? Contact us on twitter or email to become a team member.
Something went wrong with that request. Please try again.