- #HOW TO INSTALL GITLAB COMMUNITY EDITION ON UBUNTU 20.04 UPDATE#
- #HOW TO INSTALL GITLAB COMMUNITY EDITION ON UBUNTU 20.04 SOFTWARE#
#HOW TO INSTALL GITLAB COMMUNITY EDITION ON UBUNTU 20.04 UPDATE#
# Go to GitLab installation folder cd /home/git/gitlab # Copy the example GitLab config sudo -u git -H cp config/ config/gitlab.yml # Update GitLab config file, follow the directions at top of the file sudo -u git -H editor config/gitlab.yml # Copy the example secrets file sudo -u git -H cp config/ config/secrets.yml sudo -u git -H chmod 0600 config/secrets.yml # Make sure GitLab can write to the log/ and tmp/ directories sudo chown -R git log/ sudo chown -R git tmp/ sudo chmod -R u+rwX,go-w log/ sudo chmod -R u+rwX tmp/ # Make sure GitLab can write to the tmp/pids/ and tmp/sockets/ directories sudo chmod -R u+rwX tmp/pids/ sudo chmod -R u+rwX tmp/sockets/ # Create the public/uploads/ directory sudo -u git -H mkdir -p public/uploads/ # Make sure only the GitLab user has access to the public/uploads/ directory # now that files in public/uploads are served by gitlab-workhorse sudo chmod 0700 public/uploads # Change the permissions of the directory where CI job logs are stored sudo chmod -R u+rwX builds/ # Change the permissions of the directory where CI artifacts are stored sudo chmod -R u+rwX shared/artifacts/ # Change the permissions of the directory where GitLab Pages are stored sudo chmod -R ug+rwX shared/pages/ # Copy the example Puma config sudo -u git -H cp config/puma.rb.example config/puma.rb # Refer to for more information. Sudo is not installed on Debian by default. The GitLab installation consists of setting up the following components: Of GitLab and config.yml of GitLab Shell.įor a more in-depth overview, see the GitLab architecture doc. The default locations for repositories can be configured in config/gitlab.yml This area contains critical data for projects. This is where the Git repositories which are pushed/pulled are
#HOW TO INSTALL GITLAB COMMUNITY EDITION ON UBUNTU 20.04 SOFTWARE#
Software requirements Softwareįrom GitLab 13.6, Ruby 2.7 is required. If the highest number stable branch is unclear, check the GitLab blog for installation guide links by version. You can select the branch in the version dropdown list in the top left corner of GitLab (below the menu bar). Make sure you view this installation guide from the branch (version) of GitLab you would like to install (for example, 11-7-stable). Omnibus packages solve this by letting the Sidekiq terminate gracefully if it uses too much memory.Īfter this termination runit detects Sidekiq is not running and starts it.īecause installations from source don't use runit for process supervision, SidekiqĬan't be terminated and its memory usage grows over time. On heavily used GitLab instances the memory usage of the Sidekiq background worker grows over time. One reason the Omnibus package is more reliable is its use of runit to restart any of the GitLab processes in case one crashes. Consider the Omnibus package installationīecause an installation from source is a lot of work and error prone we strongly recommend the fast and reliable Omnibus package installation (deb/rpm). If you find a bug/error in this guide, submit a merge requestĬontributing guide. They changed the location of directories or run services as the wrong user. For example, many people run into permission problems because Make sure you don't violate any assumptions GitLab makes about
Use caution when you deviateįrom this guide. The following steps have been known to work. Need, this is one of the few installation scripts that actually work out of the box. This guide is long because it covers many cases and includes all commands you If you want to install on RHEL/CentOS, we recommend using the Read requirements.md for hardware and operating system requirements. It was created for and tested on Debian/Ubuntu operating systems. Other installation options, see the main installation page. To set up a development installation or for many This is the official installation guide to set up a production GitLab server