https://github.com/jubilee2/rpi-gitlab-ce
https://github.com/jubilee2/rpi-gitlab-ce
docker docker-image gitlab gitlab-ce raspberry-pi raspberrypi
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jubilee2/rpi-gitlab-ce
- Owner: jubilee2
- Created: 2017-10-01T18:57:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T16:09:47.000Z (over 1 year ago)
- Last Synced: 2024-05-29T07:19:00.338Z (over 1 year ago)
- Topics: docker, docker-image, gitlab, gitlab-ce, raspberry-pi, raspberrypi
- Language: Shell
- Size: 74.2 KB
- Stars: 7
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](http://yulun.me/2015/enable-zram-for-raspberry-pi-debian/) to increase performance.
## Install Docker on Raspberry Pi
[official documents link](https://docs.docker.com/install/linux/docker-ce/debian/#install-using-the-convenience-script)
```bash
curl -sSL https://get.docker.com | sh
```
# Install & run container
## Method 1 use pre-build image
```bash
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:
```bash
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:
```bash
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](https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/common_installation_problems/README.md#failed-to-modify-kernel-parameters-with-sysctl), but after several automatic restarts, the initialization was completed.
[More Documents!](https://docs.gitlab.com/omnibus/docker/)
The latest Docker guide can be found here: [GitLab Docker images](https://docs.gitlab.com/ee/install/docker.html).