How To Install GitLab CE on Ubuntu 22.04

In this tutorial, we will demonstrate how to install GitLab CE on Ubuntu 22.04. GitLab is an open source DevOps software package. No I want to share how to install it on your own server for your DevOps.

IP address :

 10.66.10.7

Operating System:

 Ubuntu 22.04

RAM :

 2 GB (More for best performance)
Sponsored

Disk :

 25 GB

vCPU :

 2

CPU op-mode(s) :

 64-bit

Service :

 GitLab CE
######################################

How To Install GitLab CE on Ubuntu 22.04

To install GitLab CE on Ubuntu 22.04, follow the steps below:

Sponsored

Step : Server update and upgrade then add repo.

root@gitlab-ce:~# lsb_release -d && ip r
root@gitlab-ce:~# apt update && apt upgrade -y
root@gitlab-ce:~# apt install -y ca-certificates curl openssh-server tzdata
root@gitlab-ce:~# curl -fsSL https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey| sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/gitlab.gpg
root@gitlab-ce:~# vi /etc/apt/sources.list.d/gitlab_gitlab-ce.list

Add below line into source list file.

deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ focal main
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ focal main

Step : Then run main command.

root@gitlab-ce:~# apt update
root@gitlab-ce:~# apt install gitlab-ce
root@gitlab-ce:~# vi /etc/gitlab/gitlab.rb

Add your server ip address into rb file.

external_url '10.66.10.7'

Step : Then configure gitlab-cli

root@gitlab-ce:~# sudo gitlab-ctl reconfigure

Check status using below command.

root@gitlab-ce:~# gitlab-ctl status

Collect root password from below command.

root@gitlab-ce:~# cat /etc/gitlab/initial_root_password

Check below command for manage GitLab.

root@gitlab-ce:~# gitlab-rake gitlab:check
root@gitlab-ce:~# gitlab-ctl status
root@gitlab-ce:~# gitlab-ctl stop
root@gitlab-ce:~# gitlab-ctl start
root@gitlab-ce:~# gitlab-ctl restart logrotate

If you need more help please see YouTube video:

Ubuntu Server Admin

Recent Posts

Karafka 2.5 and Web UI 0.11: Next-Gen Consumer Control and Operational Excellence

Introduction Imagine pausing a problematic partition, skipping a corrupted message, and resuming processing - all…

2 hours ago

How to Install and Run Mail-in-a-Box on Ubuntu VPS

This step-by-step guide will show you how to install and run Mail-in-a-Box on Ubuntu VPS.…

7 hours ago

How to Deploy Keycloak on Ubuntu VPS

Here’s a clear and detailed how-to guide for how to deploy Keycloak on Ubuntu VPS.…

7 hours ago

Canonical delivers Kubernetes platform and open-source security with NVIDIA Enterprise AI Factory validated design

Reference architectures speed up time to market for agentic AI projects To ease the path…

5 days ago

Canonical Kubernetes meets NVIDIA DOCA Platform Framework (DPF): building the future of DPU-driven infrastructure

The combined solutions simplify infrastructure operations and accelerate time-to-value for AI, telecom, and enterprise computing…

5 days ago

Apache Spark security: start with a solid foundation

Everyone agrees security matters – yet when it comes to big data analytics with Apache…

6 days ago