![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
GitLab
Chai Yingchao
心态有多开放,视野就有多宽广
展开
-
GitLab 使用docker-compose启动时配置ssh key
在客户端生成公钥,邮箱是你gitlab账号的邮箱。$ssh-keygen -f ~/.ssh/id_rsa -C ''yingchao.chai@qq.com' -N ''在服务器配置User Settings ->SSH Keys把pub文件内容贴到这里由于我是用docker-compose安装,所以与docker中运行的gitlab ssh端口的主机端口是2222,而不是22(这个端口可以在docker-compose.yml中查看和修改)。所以还需要进一步如下配置。如果不配置如下,原创 2020-08-17 16:14:14 · 1197 阅读 · 0 评论 -
Pull request 不支持排除某个文件的解决办法
Pull request 是不支持排除某个文件的。但有时候又需要排除某个文件,例如,包含数据库配置的项目配置文件,不同分支对应不同环境,连接的数据库信息也不同。网上能搜到一些解决办法(如下),但是比较复杂:You can’t ignore some files from a pull request selectively. Two workarounds for this can be -...原创 2019-10-18 14:39:48 · 839 阅读 · 0 评论 -
GitLab 安装
建yum源vim /etc/yum.repos.d/gitlab-ce.repo[gitlab-ce]name=gitlab-cebaseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7repo_gpgcheck=0gpgcheck=0enabled=1gpgkey=https://packages.gitlab.c...原创 2018-11-15 15:16:19 · 193 阅读 · 0 评论 -
配置gitlab使用外部数据库
vim /opt/gitlab/embedded/service/gitlab-rails/.bundle/config将BUNDLE_WITHOUT: “development:test:mysql” 修改为BUNDLE_WITHOUT: “development:test:postgres”yum -y install ruby-develcd /opt/gitlab/embedded...原创 2018-09-21 09:58:14 · 3427 阅读 · 0 评论