

Then, to stop the service run, $ sudo gitlab-ctl stop Browsing GitLab Web Interface You can execute the following command to start the service, $ sudo gitlab-ctl start $ sudo gitlab-ctl reconfigureĪfter reconfiguration finished, you can check the status by running: $ sudo gitlab-ctl status It might take a while to complete the re-configuration. Now, once configured execute the following command to apply the configuration changes. If you want to use a local domain name, you can configure at /etc/hosts. In my case, I will go with my device IP for the demonstration. $ sudo apt update $ sudo apt install gitlab-ce -yĪfter installation is complete, we need to replace the existing example subdomain with a valid domain or sub-domain in the external_url section. To install the GitLab CE package execute the following command. You have just added a gitlab repository so once again update your system. Now, you can see the GitLab package repository content in the following path: $ cat /etc/apt//gitlab_gitlab-ce.list In the above curl command, the -s option refers to silent (i.e no progress bar), and the -S option refers to show an error. Once all the dependencies installed you need to run the following curl command to download the bash script which adds package info to your system which helps the apt to manage GitLab deb packages for you. Then install the following necessary packages $ sudo apt install -y ca-certificates curl openssh-server Append GitLab Package Repository in the System Installing Prerequisite Dependenciesīefore installing the packages make sure you update the package information. In this article, we will be installing and hosting the community edition of GitLab in Ubuntu 20.04. GitLab has two versions: an enterprise edition that provides paid features and a community edition that is open source and free. It is a web-based hosting tool that helps in the remote distribution of source code among the team. GitLab is a complete DevOps platform tool that provides features like managed git repositories, integrated CI/CD pipelines for the applications, Kubernetes integration, and many more which helps in software development.
