最新消息:码丁实验室,一站式儿童编程学习产品,寻地方代理合作共赢,微信联系:leon121393608。

树莓派3服务器-搭建GITLAB代码托管平台

Raspberry Pi 少儿编程 2313浏览 0评论

码丁实验室,一站式儿童编程学习产品,寻地方代理合作共赢,微信联系:leon121393608。

搭建GITLAB代码托管平台

说明

  • 文档管理和代码管理
  • 想实现类Github一样的代码管理平台

步骤

  1. 基础准备
  • 在树莓派上安装raspbian 最新版本
  • 更新国内的raspbian 源
  1. 安装必要的依赖
sudo apt-get install curl openssh-server ca-certificates postfix apt-transport-https
curl https://packages.gitlab.com/gpg.key | sudo apt-key add -
  1. 下载gitlab的初始化脚本并执行
sudo curl -sS https://packages.gitlab.com/install/repositories/gitlab/raspberry-pi2/script.deb.sh | sudo bash
  1. 安装Gitlab
sudo apt-get install gitlab-ce

如果下载很慢,可以手工下载安装

curl -LJO https://packages.gitlab.com/gitlab/raspberry-pi2/packages/raspbian/(wheezy|jessie)/gitlab-ce-XXX.deb/download
dpkg -i gitlab-ce-XXX.deb
  1. 配置Gitlab,启动gitlab,过程很漫长请耐心等待。
sudo gitlab-ctl reconfigure

如果没有问题,大概需要25分钟左右安装好

  1. 访问 http://树莓派IP或本地访问http://localhost
  1. 扩展阅读
  • GIT教程 
  • GITLAB使用

参考:

  • https://about.gitlab.com/downloads/#raspberrypi2
  • https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/

您必须 登录 才能发表评论!