GitLab-CE Install and Setup for Raspberry Pi


Article Outline
  1. 1. System Requirements
  2. 2. Download & Installation [1]
    1. 2.1. Locate the current gitlab-ce version for your CPU & OS
    2. 2.2. Add Repo and Run the installation script
    3. 2.3. Configure URL (Local IP) [2]

GitLab is a web-based DevOps lifecycle tool that provides a Git-repository manager including wiki, issue-tracking and continuous integration and deployment pipeline features, using an open-source license, developed by GitLab Inc.

This article outlines the steps and procedures for installing a self-hosted instance of GitLab-CE on a bare-metal raspberry pi 4 running Raspberry Pi OS Lite (ARM64).

System Requirements

This setup should work on the following system configuration(s):

  • Hardware: Raspberry Pi 4
    • OS: Raspberry Pi OS Lite (ARM-64)

Download & Installation [1]

Locate the current gitlab-ce version for your CPU & OS

gitlab / gitlab-ce / debian / buster : https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/buster/gitlab-ce_13.12.3-ce.0_arm64.deb

Add Repo and Run the installation script

To add the Repo, open a terminal on the device and type,

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

To begin the installation execute the following command,

sudo apt-get install gitlab-ce=13.12.3-ce.0

(This process may take a few minutes to complete)

Configure URL (Local IP) [2]

If you failed to pass the EXTERNAL_URL variable during the initial installation then you must edit the gitlab configuration file to specify the default URL for accessing GitLab.

  • Open the GitLab Config file for editing:
    • $ sudo nano /etc/gitlab/gitlab.rb

Locate the section title, “GitLab URL” and edit the following value:

-external_url 'http://<local IP address>'

Replace '<local IP address>' with the local IP address of the device hosting GitLab.

  • Reconfigure GitLab to apply changes,
    • $ sudo gitlab-ctl reconfigure

Once this process has completed, you should be able to access the GitLab server from any device on your network using the specified IP address.


  1. Title: GitLab Packages
    Publication: GitLab.com ↩︎

  2. Title: Install GitLab and a GitLab runner arm64 packages on the RPI4
    Publication: k33g_org.gitlab.io - Issues ↩︎