DEV Community

Harizaldo Alfaraze
Harizaldo Alfaraze

Posted on

Cara Install GitLab di On-Premises (Self-Hosted)

System Update & Prerequisites

sudo apt update && sudo apt upgrade -y
sudo apt install -y apt-transport-https curl

Add the GitLab package repository
To install GitLab, first add the GitLab package repository.

  • Install the needed packages:

sudo apt install -y curl

  • Use the following script to add the GitLab repository (you can paste the script’s URL to your browser to see what it does before piping it to bash):

Community Edition

curl "https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh" | sudo bash

Installation commands
Basic installation:

sudo EXTERNAL_URL="https://gitlab.example.com" apt install gitlab-ce

With custom root credentials:

sudo GITLAB_ROOT_EMAIL="admin@example.com" \
GITLAB_ROOT_PASSWORD="strongpassword" \
EXTERNAL_URL="https://gitlab.example.com" \
apt install gitlab-ce

Top comments (0)