GitLab is an open source project for a warehouse management system. Use Git as a code management tool, and built up on the basis of web services. It provides Git version control, code inspection, Bug tracking and Wiki, which can secure authentication and authorization via LDAP or Active Directory. Single GitLab can support 25,000 users, but it can also set up multiple servers to achieve their high availability. GitLab was not income to Ubuntu14.04 software library, but it is also very easy to install GitLab, Here to talk about how to install GitLab:
First GitLab according to official documents, enter the following command:
wget -c https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.0.0-omnibus-1_amd64.deb
sudo apt-get install openssh-server
sudo apt-get install postfix
sudo dpkg -i gitlab_7.0.0-omnibus-1_amd64.deb
Because the address of this package GitLab download speed is very slow, but also often break, so after wget -c added this parameter. Install openssh-server phrase can actually get rid of, because I usually installed when the server will check the installation of this service, after all, you need a remote login server Well! Postfix is a mail service, if you do not install this service, you can also install Sendmail or Exim mail service and other similar (if the mail server, you can ignore this step, you can re-configure the SMTP service by gitlab-ctl).
Next is to set GitLab domain:
sudo mkdir -p / etc / gitlab
sudo touch /etc/gitlab/gitlab.rb
sudo chmod 600 /etc/gitlab/gitlab.rb
sudo vi /etc/gitlab/gitlab.rb
Then add a domain configuration:
external_url "# Postfix or Sendmail if these messages do not have to install the service, then you need as your mail client as to set the following parameters according to the contents of the SMTP server
gitlab_rails [ 'smtp_enable'] = true
gitlab_rails [ 'smtp_address'] = "smtp.server"
gitlab_rails [ 'smtp_port'] = 456
gitlab_rails [ 'smtp_user_name'] = "smtp user"
gitlab_rails [ 'smtp_password'] = "smtp password"
gitlab_rails [ 'smtp_domain'] = "example.com"
gitlab_rails [ 'smtp_authentication'] = "login"
gitlab_rails [ 'smtp_enable_starttls_auto'] = true
Then GitLab be reconfigured to:
sudo gitlab-ctl reconfigure
Note: As GitLab most configuration files (such as database.yml gitlab.yml or the like) in the comments as:
# This file is managed by gitlab-ctl. Manual changes will be
# Erased! To change the contents below, edit /etc/gitlab/gitlab.rb
# And run `sudo gitlab-ctl reconfigure`.
In GitLab most of the modifications on the configuration, and now need to be set up in /etc/gitlab/gitlab.rb, and then run sudo gitlab-ctl reconfigure be modified.
If you are interested in how to configure gitlab.rb, you can see: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md this site, they have basically made it very clear.
The next step is to detect whether the installation was successful, you can enter the following command:
sudo gitlab-ctl status
[Sudo] password for firehare:
run: nginx: (pid 13334) 16103s; run: log: (pid 4244) 22211s
run: postgresql: (pid 4153) 22280s; run: log: (pid 4152) 22280s
run: redis: (pid 4070) 22291s; run: log: (pid 4069) 22291s
run: sidekiq: (pid 4234) 22212s; run: log: (pid 4233) 22212s
run: unicorn: (pid 4212) 22218s; run: log: (pid 4211) 22218s
If you get a result similar to the above, then shows you the installation was successful.
Since GitLab package comes with Ruby, Rails and PostgreSQL, as before, so there is no need to consider the compatibility problem. Finally, users only need to log on the server GitLab located, and using the account root, password 5iveL! Fe to log GitLab. You first log GitLab will be forced to let you reset the password, then you can enter the GitLab.