gitlab汉化版安装

简介: 汉化版gitlab安装

当前环境

cat /etc/redhat-release //系统版本

CentOS Linux release 7.2.1511 (Core)

uname -r //内核版本

3.10.0-327.22.2.el7.x86_64

cat > /etc/yum.repos.d/gitlab-ce.repo << 'EOF' //添加yum源

[gitlab-ce]
name=gitlab-ce
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
EOF

yum install gitlab-ce-8.8.5-ce.1.el7 //安装gitlab

vim /etc/gitlab/gitlab.rb

external_url 'http://192.168.56.12' //修改URL

gitlab-ctl reconfigure //配置并启动gitlab

克隆补丁项目
cd
git clone https://gitlab.com/larryli/gitlab.git sourceGitlab
时间有点长,做好心理准备

得到中文汉化补丁
进入目录,把8.8的英文和中文补丁一起diff,得到中文汉化补丁
cd sourceGitlab
git diff origin/8-8-stable origin/8-8-zh > /tmp/8.8.5.diff
gitlab-ctl stop
patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < /tmp/8.8.5.diff

验证

that’s all,enjoy!!
但这种方式有个问题,就是左侧的快捷导航栏没有了,可能就是样式的原因,但难不了我,只要在浏览器中用调试工具把这个节点找到然后替换成这个就行了:

目录
相关文章
GitLab汉化
GitLab汉化
375 0
|
Prometheus 监控 Cloud Native
私有仓库Gitlab的安装与汉化
私有仓库Gitlab的安装与汉化
450 0
Gitlab汉化
Gitlab汉化
164 0
Gitlab汉化
Gitlab汉化
139 0
|
开发工具 git 数据安全/隐私保护
搭建GitLab并汉化
目录 1. 安装并配置必要的依赖关系 2、配置gitlab-ce的yum源 3. yum安装gitlab-ce 4. gitlab汉化 下载中文补丁包 先备份,避免汉化失败后gitlab瘫痪 重新配置gitlab 重启g...
5803 0
|
NoSQL 关系型数据库 应用服务中间件