Gitlab on Raspberry Pi

06 Sep 2020 / OscFr
how to git

Configure the Swap file

sudo nano /etc/dphys-swapfile

Put this line in a comment #

CONF_SWAPSIZE

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.

Recommendations

Disable new signups

Disable Auto devops core only

Add some SSH keys

References

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

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