1. Installation
- Requirements
- Installing GitLab using the Omnibus GitLab package (recommended)
- Installing GitLab on Kubernetes via the GitLab Helm charts
- Installing GitLab with Docker
- Installing GitLab from source
- Installing GitLab on cloud providers
- Securing your GitLab installation
2. Installation
GitLab 可以安装在大多数 GNU / Linux 发行版以及许多云提供商中. 为了从 GitLab 获得最佳体验,您需要在性能,可靠性,易于管理(备份,升级和故障排除)以及托管成本之间取得平衡.
根据平台的不同,可以通过多种方式安装 GitLab:
- Omnibus GitLab :官方的 deb / rpm 软件包,包含捆绑的 GitLab 及其依赖的各种组件,例如 PostgreSQL,Redis,Sidekiq 等.
- GitLab Helm 图表 :用于在 Kubernetes 上安装 GitLab 及其所有组件的云原生 Helm 图表.
- 码头工人:Omnibus GitLab 软件包码头化.
- 来源 :从头开始安装 GitLab 及其所有组件.
如有疑问,请选择 Omnibus: Omnibus GitLab 软件包已经成熟, 可扩展,并且已在 GitLab.com 上使用. 建议向熟悉 Kubernetes 的人使用 Helm 图表.
2.1. Requirements
在安装 GitLab 之前,查看系统要求至关重要. 系统要求包括有关最低硬件,软件,数据库以及支持 GitLab 的其他要求的详细信息.
2.2. Installing GitLab using the Omnibus GitLab package (recommended)
Omnibus GitLab 软件包使用我们的官方 deb / rpm 存储库. 建议大多数用户使用.
如果您需要更多的灵活性和弹性,我们建议按照参考架构文档中的说明部署 GitLab.
> Install GitLab using the Omnibus GitLab package.
2.3. Installing GitLab on Kubernetes via the GitLab Helm charts
需要 Kubernetes 经验:我们建议您先熟悉 Kubernetes,然后再使用 Kubernetes 在生产中部署 GitLab. 管理,可观察性和某些概念的方法与传统部署不同.
在 Kubernetes 上安装 GitLab 时,需要注意一些折衷:
- 管理和故障排除需要 Kubernetes 知识.
- 对于较小的安装,它可能会更昂贵. 默认安装比单节点 Omnibus 部署需要更多的资源,因为大多数服务都是以冗余方式部署的.
- 有一些功能限制需要注意 .
> Install GitLab on Kubernetes using the GitLab Helm charts.
2.4. Installing GitLab with Docker
GitLab 基于 Omnibus GitLab 软件包维护一组正式的 Docker 映像.
> Install GitLab using the official GitLab Docker images.
2.5. Installing GitLab from source
如果您的发行版中没有 Omnibus GitLab 软件包,则可以从源代码安装 GitLab:对于* BSD 等不受支持的系统很有用. 有关目录结构的概述,请阅读结构文档 .
2.6. Installing GitLab on cloud providers
只要有云提供商支持,就可以使用上述任何一种方法将 GitLab 安装在各种云提供商上.
- 在 AWS 上安装:使用 GitLab 提供的社区 AMI 在 AWS 上安装 Omnibus GitLab.
- 在 Google Cloud Platform 上安装 GitLab :在 GCP 中的 VM 上安装 Omnibus GitLab.
- 在 Azure 上安装 GitLab:从 Azure 市场安装 Omnibus GitLab.
- 在 OpenShift 上安装 GitLab:通过使用 GitLab 的 Helm 图表在 OpenShift 上安装 GitLab.
- 在 DC / OS 上安装 GitLab:通过GitLab-Mesosphere 集成在 Mesosphere DC / OS 上安装 GitLab.
- 在 DigitalOcean 上安装 GitLab:在 DigitalOcean 上安装 Omnibus GitLab.
- 仅测试! DigitalOcean 和 Docker Machine :使用 Docker Machine 在 DigitalOcean 上快速测试任何版本的 GitLab.
2.7. Securing your GitLab installation
完成安装后,请查看我们建议的做法以保护您的 GitLab 实例 .