How to install and setup GitLab Community Edition on Ubuntu

GitLab is an open source web based Git repository manager with features similar to GitHub like wiki, issue tracking. GitLab CE lets developers host a Gitlab instance on their own servers that lets developers store source code on their own private server that gives them more freedom, and lets them choose the type of hardware they prefer to serve this purpose, GitLab also is a cost effective solution to other Enterprise options like GitHub. GitLab also offers hosted GitLab for developers that prefer GitLab and don’t feel the need to host their own version of GitLab, The hosted GitLab comes with a limit of 1GB per repository.

Recently GitLab CE comes with pre-composed packages that makes the install process hassle free. Lets install GitLab CE.

System requirements

  • 1 GB RAM (required)
  • 1 Code processor.
  • 10 GB of disk space

The higher specification your system will have the better GitLab will perform.

GitLab requirements

sudo apt-get install openssh-server  postfix -y  
  • Once the packages are installed you will be greeted by a postfix setup screen that will ask you for a hostname, you can choose the host name you prefer.
  • Downloading the pre-composed GitLab CE debian package.
    • If you are using Wget go ahead.
wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.8.0-omnibus-1_amd64.deb  
    • If you prefer curl
curl -# -L -O https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.8.0-omnibus-1_amd64.deb  
  • You can edit the gitlab.rb if needed or go ahead the skip this step.

    editor /etc/gitlab/gitlab.rb

You can find the official documentation over here and official website.

  • Re configuring the GitLab (This is an important step)

    sudo gitlab-ctl reconfigure

Now you can visit the http://127.0.0.1.

The default username is:

root  

the default password is

5iveL!fe  

The system will ask you to set the new password, you can change the settings in the admin area if required depending on your need.

Thanks you reading, If you have any question feel free to leave a comment below.

Leave a Reply