Gitlab on Raspberry Pi

06 Sep 2020 / Oscar F
RaspberryPi with Gitlab logo

Configure the Swap file

sudo nano /etc/dphys-swapfile

Put this line in a comment #


Install dependencies

sudo apt-get install curl openssh-server ca-certificates apt-transport-https
curl https://packages.gitlab.com/gpg.key | sudo apt-key add -

If you want to use the email functionality install postfix.

sudo apt-get install -y postfix

Download Gitlab

sudo curl -sS https://packages.gitlab.com/install/repositories/gitlab/raspberry-pi2/script.deb.sh | sudo bash

Install Gitlab

To use Gitlab only on your local network exclude: EXTERNAL_URL = "https://gitlab.example.com"

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

This can take some time but then you can login.


Disable new signups

Disable Auto devops core only

Add some SSH keys


[1]: Configure the Swap file Retrieved: 5 Sep 2020 20:00

[2]: Install dependencies Retrieved: 5 Sep 2020 20:00

[3]: Logo Retrieved: 5 Jan 2021 20:00

Twitter logo black Facebook “f” logo black Reddit logo black LinkedIn logo black Email icon black