Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 111 lines (72 sloc) 2.333 kb
9104535 @NARKOZ brand new README
NARKOZ authored
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
5
6 <img src="http://gitlabhq.com/front.png" width="900" height="471">
7
8
9104535 @NARKOZ brand new README
NARKOZ authored
9 ## Application details
10
11 rails 3.1
12 works only with gitosis
13 sqlite as default a database
14
15 ## Requirements
16
17 * ruby 1.9.2
18 * sqlite
19 * git
20 * gitosis
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
32 sudo easy_install pygments
33
34 # give your user access to remove git repo
35 # Ex.
36 # If you are going to use user 'gitlabhq' for rails server
37 # gitlabhq ALL = (git) NOPASSWD: /bin/rm" | sudo tee -a /etc/sudoers
38 #
39 echo "USERNAME ALL = (git) NOPASSWD: /bin/rm" | sudo tee -a /etc/sudoers
40
41 sudo gem install bundler
42
310f013 @nono Don't install development and test gems in production
nono authored
43 bundle install --without development test
9104535 @NARKOZ brand new README
NARKOZ authored
44
45 bundle exec rake db:setup RAILS_ENV=production
46
47 # create admin user
48 # login....admin@local.host
49 # pass.....5iveL!fe
50 bundle exec rake db:seed_fu RAILS_ENV=production
51 ```
52
139a332 @randx updated readme
randx authored
53 Install gitosis, edit `config/gitlab.yml` and start server
9104535 @NARKOZ brand new README
NARKOZ authored
54
55 ```bash
139a332 @randx updated readme
randx authored
56 bundle exec rails s -e production
9104535 @NARKOZ brand new README
NARKOZ authored
57 ```
58
59 ## Install Gitosis
60
61 ```bash
62 sudo aptitude install gitosis
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
73 ssh-keygen -t rsa
74
75 sudo -H -u git gitosis-init < ~/.ssh/id_rsa.pub
76
77 sudo chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update
1bcdc0a @vsizov [#187] First time user try access gitosis
vsizov authored
78
79 cd /tmp && git clone git@localhost:gitosis-admin.git
80
81 rm -rf gitosis-admin.git && cd
9104535 @NARKOZ brand new README
NARKOZ authored
82 ```
83
84 ## Install ruby 1.9.2
85
86 ```bash
87 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
88
89 wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
90
91 tar xfvz ruby-1.9.2-p290.tar.gz
92
93 cd ruby-1.9.2-p290
94 ./configure
95 make
96 sudo checkinstall -D
97
98 sudo gem update --system
99
100 echo "gem: --no-rdoc --no-ri" > ~/.gemrc
101 ```
102
103 ## Community
104
105 [Google Group](https://groups.google.com/group/gitlabhq)
106
107 ## Contribute
108
109 We develop project on our private server.
110 Want to help? Contact us on twitter or email to become a team member.
Something went wrong with that request. Please try again.