镜像组成

本Gitlab镜像采用Omnibus包的安装方式,以最新版本为例,组件包括:Ruby,Gitlab-Rails,Gitlab-CI,Nginx,Postgresql等(通过/opt/gitlab/version-manifest.txt查看所有组件的版本)。

GitLab的安装位置、组件目录和设置参考如下(通过/etc/gitlab/gitlab.rb完成大部分设置)

Default location

Permissions

Ownership

Purpose

/var/opt/gitlab/git-data

0700

git:root

Holds repositories directory

/var/opt/gitlab/git-data/repositories

2770

git:git

Holds git repositories

/var/opt/gitlab/gitlab-rails/shared

0751

git:gitlab-www

Holds large object directories

/var/opt/gitlab/gitlab-rails/shared/artifacts

0700

git:root

Holds CI artifacts

/var/opt/gitlab/gitlab-rails/shared/lfs-objects

0700

git:root

Holds LFS objects

/var/opt/gitlab/gitlab-rails/uploads

0700

git:root

Holds user attachments

/var/opt/gitlab/gitlab-rails/shared/pages

0750

git:gitlab-www

Holds user pages

/var/opt/gitlab/gitlab-ci/builds

0700

git:root

Holds CI build logs

/var/opt/gitlab/.ssh

0700

git:git

Holds authorized keys

本镜像采用Gitlab官方推荐的Omnibus包安装方式。Omnibus是有Gitlab官方提供的集成了Gitlab程序、运行环境、服务组件、升级和维护工具的包集合,Omnibus一方面可以保证100%安装正确,另一方面简化https的配置、后续的升级维护工作。

官方建议最低使用4G内存(We also strongly recommend at least 4GB of free memory to run GitLab.),另外本镜像已经增加了2G的交换分区以应对内存突发增长的情况下不至于由于内存不足导致无法访问。

GitLab中文版是基于Omnibus GitLab+汉化补丁制作而成,汉化来源:https://gitlab.com/xhang/gitlab

Last updated