Articles of gitlab

GitLab&OpenLDAP:无效凭证

我有两台CentOS 7.0的机器。 第一个是只有OpenLDAP的域控制器。 我根据本教程configuration了OpenLDAP: http : //www.server-world.info/en/note? os=CentOS_7&p=openldap 然后,我有另一台机器与GitLab。 我正在尝试configurationLDAP身份validation,但每次收到“无效凭据”错误。 我的GitLabconfiguration: gitlab-rails": { "ldap_enabled": true, "ldap_servers": { "main": { "label": "LDAP", "host": "192.168.50.4", "port": 389, "uid": "uid", "method": "plain", "bind_dn": "CN=gitlab,OU=people,DC=courseproject,DC=org", "password": "mypass", "active_directory": false, "allow_username_or_email_login": false, "base": "OU=people,DC=courseproject,DC=org", "user_filter": "" } 我必须使用普通身份validation和LDAP,而不是LDAPS的另一个项目。 我的用户和群组configuration: dn: dc=courseproject,dc=org objectClass: top objectClass: dcObject objectclass: organization o: courseproject org […]

GitLab推不可能,总是导致要求git用户密码

我有一个GitLab的问题。 一切都很好,但我不能推。 它一直在问我用户git的密码。 这是一个问题,我第一次安装Omnibus软件包,然后卸载它,因为我使用Apache和这个软件包使用Nginx? 我在本教程中安装了GitLab。 它工作,但其他用户无法创build项目。 然后我试着卸载它,重新安装并更新它。 现在每个人都可以创build项目,但是当有人试图推送时,它会要求input一个git密码。 SSH密钥被创build并保存在GitLab中。 文件夹/home/git/.ssh不存在。 我在这里find它: /var/opt/gitlab/.ssh 。 这是gitconfiguration不正确的迹象吗?

Synology DSM 5.2 – 具有Docker SSL连接错误的Gitlab

昨天我安装了Synology DSM 5.2,因为它的稳定版本出来了。 之后,我安装并configuration了Docker,MariaDB和官方Synology仓库中的gitlab。 Gitlab在ort:30000上运行,而gitlab的ssh访问在端口:30001上运行 Docker容器正在运行,但每当我尝试访问Docker网站时: https://example.org:30000 =>我在FireFox中遇到SSL错误 连接到example.org:30000期间发生错误。 SSL收到的logging超出了允许的最大长度。 (错误代码:ssl_error_rx_record_too_long) =>和Chrome: SSL连接错误 ERR_SSL_PROTOCOL_ERROR 这可以指示通过此端口的未encryption连接(仅限http),DSM以某种方式强制执行HTTPS协议。 我使用正式签名和validation的证书,在正常的DSM Web界面,Webdav和DokuWiki等Web服务中完美无瑕。 有人遇到类似的问题,甚至find解决办法。 Google在Synology DSM 5.2 Docker / Gitlab SSL错误这个话题上似乎空空如也。

如何防止启动时自动启动gitlab

我在Ubuntu 14.04机器上运行gitlab CE 8.2.0。 我怎样才能防止自动启动重新启动? 我在gitlab.rb找不到任何相关的gitlab.rb 编辑:为什么是反面投票? 请留言解释,我是这个网站的新手。

Jenkins / GitLab:如何自动构build最新的git标签?

我想在Jenkins中构build最新的git标签,并将其推送到git(GitLab)存储库。 用于标签推送的Web挂钩已configuration并正在运行。 我目前的尝试是设置一个参数化的Jenkins作业,所以它在git repostiory中列出了我的标签: Git Parameters Configuration 。 我没有得到一些工作:在标签推动上触发构build。 并自动build立这个标签。 因为我没有在网上或jenkins文档中find任何东西,这有助于我实现这一点,也许有人可以帮忙? 谢谢

使用certbot更新ssl cert for gitlab&让encryption

我正在ubuntu 14上运行gitlab。以前configuration的证书已过期(没有cron条目被设置为更新)。 我正在尝试安装certbot(让我们encryption)更新证书,然后设置自动续订的crontab项。 当我运行certbot时,我得到了一个复制到下面的消息(有一个位置,我可以抓住一个更详细的错误信息): 正在运行的命令: ./certbot-auto certonly –webroot -w /opt/gitlab/ssl -d git.xyz.com git.xyz.com是一个有效的域名(我用xyzreplace了实际的域名)。 目录/ opt / gitlab / ssl存在,用于运行该命令的用户对该目录及其内容具有读/写权限。 错误授权程序失败。 git.xyz.com(http-01):urn:acme:error:connection ::服务器无法连接到客户端来validation域名:无法连接到git.xyz.com 重要笔记: – The following errors were reported by the server: Domain: git.xyz.com Type: connection Detail: Could not connect to git.xyz.com To fix these errors, please make sure that your domain name was entered […]

使用gitlab-runner重新启动tomcat

我有.gitlab-ci.ymlconfiguration: deploy-integration: stage: deploy script: – cp target/example.war /var/webapps – service tomcat7 restart 但执行不成功,因为: $ service tomcat7 restart 您需要root权限才能运行此脚本 错误:生成失败:退出状态1 用gitlab-runner重启tomcat最好的方法是什么? 我只想为这个命令授予gitlab-runner权限。

如何阅读gitlab-workhorse日志?

我在本地服务器上运行gitlab omnibus安装。 有一些事件发生,并希望看到在gitlab-workhorse日志。 前一天在/var/log/gitlab/gitlab-workhorse的文件被命名为如下所示@4000****.s和@4000****.u 。 当我尾巴current我看到日志人类可读,但不是扩展名为*.s或*.u的文件(我猜这些是压缩的日志文件)。 想知道如何我可以读取/解压缩他们。

从Centos7中删除Gitlab EE

我刚刚在运行Apache的Centos7 vps上安装了https://about.gitlab.com/installation/#centos 。 在这之前我应该​​先阅读更多,因为它与Apache冲突,我不想要EE版。 我应该如何删除它? curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash sudo yum install gitlab-ee sudo gitlab-ctl reconfigure 我尝试了以下。 sudo gitlab-ctl stop sudo gitlab-ctl uninstall rpm -e gitlab 而重启后,远没有卸载 [michael@vps~]$ ps -ef | grep gitlab root 730 1 0 13:49 ? 00:00:00 runsvdir -P /opt/gitlab/service log: …………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………….. root 743 730 0 13:49 ? 00:00:00 runsv gitlab-workhorse […]

是否有可能将环境variables传递给新创build的用户?

在我的GitLab CI脚本中,我创build了一个新的用户,然后执行一个命令。 我注意到当这个用户执行该命令时,CI环境variables不可用。 以下是我所做的: before_script: – useradd -U -d "$CI_PROJECT_DIR" newuser test-app: stage: test image: open-jdk script: – echo $MY_CI_VAR #here I can see the env var set in GitLab CI – su newuser -l -c "grails test-app -unit FooHelper" #in the code it is not available 题 有没有办法在创build新用户时或者以该用户身份执行命令时传递环境variables。