Skip to content

jubilee2/rpi-gitlab-ce

Repository files navigation

rpi-gitlab-ce

the Dockerfile base on https://gitlab.com/gitlab-org/omnibus-gitlab/tree/master/docker and make some change for raspberry Pi

I suggest enable the zram to increase performance.

Install Docker on Raspberry Pi

official documents link

curl -sSL https://get.docker.com | sh

Install & run container

Method 1 use pre-build image

sudo docker run --detach \
    --hostname IP \
    --publish 443:443 --publish 80:80 --publish 22:22 \
    --name gitlab \
    --restart always \
    --volume /srv/gitlab/config:/etc/gitlab \
    --volume /srv/gitlab/logs:/var/log/gitlab \
    --volume /srv/gitlab/data:/var/opt/gitlab \
    jubilee2/rpi-gitlab-ce:v12.4.1

Method 2 build image by your self

Build Gitlab image:

sudo apt-get install git
git clone https://github.com/jubilee2/rpi-gitlab-ce.git
cd rpi-gitlab-ce
sudo docker build -t gitlab-ce .

Run Gitlab container:

sudo docker run --detach \
    --hostname IP \
    --publish 443:443 --publish 80:80 --publish 22:22 \
    --name gitlab \
    --restart always \
    --volume /srv/gitlab/config:/etc/gitlab \
    --volume /srv/gitlab/logs:/var/log/gitlab \
    --volume /srv/gitlab/data:/var/opt/gitlab \
    gitlab-ce:latest

Experience

It's need 20 min for first start up on my raspberry PI 3 B+ with enable zram I observe this error occurred link, but after several automatic restarts, the initialization was completed.

More Documents!

The latest Docker guide can be found here: GitLab Docker images.