问题描述
有什么方法可以运行 GitLab (http://gitlab.org/gitlab-ce) 和 GitLab CI (http://gitlab.org/gitlab-ci) 在运行 Raspbian 的 Raspberry Pi 设备上?
Is there a way I can run GitLab (http://gitlab.org/gitlab-ce) and GitLab CI (http://gitlab.org/gitlab-ci) on a Raspberry Pi device running Raspbian?
我想拥有自己的内部 Git 盒子,我可以在其中存储代码,并可能允许其他朋友也可以上传他们的代码.可能吗?
I want to have my own internal Git box where I can store code and possibly allow other friends access to upload their code too. Is it possible?
谢谢.
推荐答案
Pi 2 的官方方法
有一种非常简单的方法可以将其安装在 Raspberry Pi 2 上.
Official way for the Pi 2
There is a very easy way to install it on the Raspberry Pi 2.
wget https://s3-eu-west-1.amazonaws.com/downloads-packages/raspberry-pi/gitlab_7.9.0-omnibus.pi-1_armhf.deb
sudo dpkg -i gitlab_7.9.0-omnibus.pi-1_armhf.deb
你可能更喜欢去官方页面以获得最新版本.它既快速又简单,他们建议至少 1Gb 交换.
You might prefer to go to the official page in order to get latest version. It's fast and easy, they recommend at least 1Gb swap.
在 Pi B 和 B+ 上,您很快就会达到内存限制并随着增长而降低性能,但在 Pi 2 上它运行良好,特别是如果您将存储库安装在外部 USB 硬盘上.
On the Pi B and B+ you will hit the memory limit very soon and get degraded performance as you grow, but on the Pi 2 it works nicely, specially if you mount your repos on an external USB hard disk.
这篇关于树莓派和 GitLab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!