Installation of GitLab CE on a Raspberry Pi 4 (4GB)
download and install Raspbian (with recommended software) on your Raspberry Pi 4
connect the USB 3 memory stick to the USB 3 port - connect it to the router via Gigabit LAN
use a SSH console like Putty and connect it to the IP of your Raspberry Pi
follow the installation steps on GitHub (link is in the info box below)
Raspberry Pi Login - SSH must already be activated
update / upgrade your Raspbian system (optional step)
the default hostname is "raspberrypi" - change it with the raspi-config
enter raspi-config -> 1. Change User Password 
5. Interfacing Options -> P2 SSH -> Enable
7. Advanced Options -> A1 Expand Filesystem
2. Network Options -> N1 Hostname -> change it to "gitlab"
exit the raspi-config and reboot your Raspberry Pi
login after reboot is done
check if the new hostname is "gitlab"
mount the USB memory stick as mass storage for the GitLab repositories
identify your USB memory stick device name, e.g. "Ultra" on /dev/sda1
replace   /dev/sda1   with your location
copy the UUID of your USB memory stick
replace the UUID with the UUID of your USB memory stick
increase the SWAPSIZE (recommended step)
check the new SWAPSIZE
now install GitLab
check the latest GitLab images and copy the version number
replace the version with the latest image version and start the download
replace the image version with the one you downloaded
the installation of GitLab was successful
Configure the GitLab Server
modify the GitLab configuration file: /etc/gitlab/gitlab.rb
replace the external_url with the IP of your Raspberry Pi
make the second change near line 750
reduce the number of worker processes for a better performance
reduce the amount of concurrency in your Sidekiq process near line 814
make the last change near line 438
change the GitLab repositories directory to your USB memory stick
save the configuration file and close it
reconfigure GitLab to use the new configuration
this takes some time (7 minutes on a Raspberry Pi 4)
open GitLab in your browser http://gitlab/
create a password and confirm the password
GitLab login: Enter Username "root" and your password
the GitLab server is running successfully on the Raspberry Pi 4 with 4GB
check here if your GitLab version is up-to-date
check if GitLab is using your USB memory stick as data storage
Health Check should say "Healthy"
background jobs should start and run without failures
check if the GitLab server is also running after a reboot of the Raspberry Pi
stop the GitLab server components
after Reboot login and wait a few minutes until the GitLab startup process is done
the GitLab server is running successfully after the Reboot
check again if GitLab recognizes the USB memory stick
check the swap usage - it should be zero
Thanks for watching Like and subscribe for more
click to watch part 2 and subscribe to this channel
