Articles of gitlab

Centos:启用EPEL时yum更新的Clamd和Razor-agents依赖性失败

我想将Gitlab 6安装到我的CentOS 6.4 x64服​​务器上。 我正在跟随教程,并使用此命令启用EPEL: rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 那么当我检查我的repolist时,结果如下: yum repolist repo id repo name status base CentOS-6 – Base 6381 epel Extra Packages for Enterprise Linux 6 – x86_64 9893 extras CentOS-6 – Extras 13 rpmforge RHEL 6 – RPMforge.net – dag 4643 updates CentOS-6 – Updates 1484 repolist: 22414 之后,我会按照安装指南中的说明进行yum -y update 。 […]

Gitlab rpm版本

build议将Gitlab安装为Omnibus软件包。 软件包可用于stream行的deb和rpm格式。 软件包在这里可用。 还有一个脚本可以自动安装。 CentOS用户可以使用以下最新的软件包: gitlab-EE-8.5.0-EE。 1.el6 .x86_64.rpm#Enterprise Linux 6.0(CentOS,RedHat,Amazon Linux) gitlab-EE-8.5.0-EE。 0.el6 .x86_64.rpm#见上面 gitlab-EE-8.5.0-EE。 1.el7 .x86_64.rpm#Enterprise Linux 7.0(CentOS,RedHat,Amazon Linux) gitlab-EE-8.5.0-EE。 0.el7 .x86_64.rpm#见上面 0 .el6和1 .el6有什么区别? 我正在使用内核版本Linux 2.6.32-573.7.1.el6.x86_64运行CentOS版本6.7(最终)。 我应该selectgitlab-ee-8.5.0-ee。 1.el6.x86_64 .rpm?

OpenSSH中继为特定的主机

目前我负责一个公司的networking,这个公司有不同的子域名,指向同一个IP地址,用于不同的目的。 我们有他们的网站example.com和他们的Gitlab实例的gitlab.example.com。 目前我们希望将Gitlab实例移动到同一networking上的不同服务器上。 对于Gitlab的Web-UI,我们使用nginx作为另一个服务器IP的反向代理,并用于pipe理SSL证书和主机。 但是现在我们遇到了问题,我们无法build立到这台服务器的ssh连接,因为WAN端口被转发到web服务器而不是新的gitlab服务器,我们需要这个端口指向web服务器。 但也因为我们有的项目数量,我们不能改变港口。 (我们没有时间在git中重新configuration所有这些项目) 有没有可能让networking服务器像gitlab服务器的中继? 这样每个到gitlab.example.com的连接都被转发到这个特定的服务器上? 谢谢你的帮助!!

启用S​​SL GitLab导致ERR_CONNECTION_REFUSED

我有一个现有的GitLab安装几个月,我决定是时候添加一个真正的SSL证书(不是自签名)。 按照文档,我更改以下行: external_url 'http://<domain>.com' 至: external_url 'https://<domain>.com' 并取消注释以下几行: nginx['redirect_http_to_https'] = true nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.crt" nginx['ssl_certificate_key'] "/etc/gitlab/ssl/gitlab.key" 而且可以肯定的是,我仔细检查了关键文件: root@host:/etc/gitlab# cat /etc/gitlab/ssl/gitlab.crt —–BEGIN CERTIFICATE—– … root@host:/etc/gitlab# cat /etc/gitlab/ssl/gitlab.key —–BEGIN PRIVATE KEY—– … 然后我运行gitlab-ctl reconfigure ,最后得到了一个成功的消息。 但是,导航到GitLab URL,我得到一个ERR_CONNECTION_REFUSED 。 当我注释掉上面的所有行并运行gitlab-ctl reconfigure ,在HTTP端口80上的一切都会恢复正常。 当我向configuration文件提供两个证书并调整URL时,什么可能导致nginx拒绝连接? 谢谢!

如何在没有tty的情况下重新启动systemd服务?

也许我看着这个错误的方式,但我想设置我的gitlab ci能够自动部署代码推。 看起来像一个相当简单的过程,我已经成功地把它的大部分工作。 我可能完全误解了systemd是如何工作的,因为我相当陌生。 我有一个节点应用程序,我推到gitlab,这将成功启动部署逻辑,但我所做的最后一步是重新启动应用程序,以确保我实际上拉入所有的代码更改(据我所知,模块的更改不会发生w / o重新启动服务,因为npm高速caching一旦需要保持在内存中的模块)。 我的gitlab ci yaml文件如下所示: stages: – deploy deploy-prod: stage: deploy variables: BRANCH_REF: master script: – git fetch – git checkout $BRANCH_REF – git pull origin $BRANCH_REF – npm install – rm -rf /opt/my-app/www – ln -s $CI_PROJECT_DIR /opt/my-app/www – sh /home/gitlab-runner/restart.sh tags: – production 我可能不需要间接的符号链接,但是这个问题并不重要。 我做了那个restart.sh文件,因为我得到了错误的sudo: sorry, you must […]

Gitlab无法升级到第9版

这就是我所拥有的, [git]~> dpkg -l | grep gitlab rc gitlab 7.7.2-omnibus.5.4.2.ci-1 amd64 The full stack of gitlab iF gitlab-ce 9.0.0-ce.0 amd64 GitLab Community Edition (including NGINX, Postgres, Redis) ii gitlab-ci-multi-runner 当我尝试升级时,会发生这种情况。 [git]~> apt-get dist-upgrade Reading package lists… Done Building dependency tree Reading state information… Done Calculating upgrade… Done The following packages were automatically installed and are […]

在RHEL 7上,GitLab安装失败

我试图在RHEL 7上安装GitLab 7.0(使用CentOS omnibus包),但是安装在下面的步骤中保持失败。 有关如何让安装成功完成的任何build议? * execute[initctl status gitlab-runsvdir] action run ================================================================================ Error executing action `run` on resource 'execute[initctl status gitlab-runsvdir]' ================================================================================ Errno::ENOENT ————- No such file or directory – initctl Resource Declaration: ——————— # In /opt/gitlab/embedded/cookbooks/runit/recipes/upstart.rb 29: execute "initctl status gitlab-runsvdir" do 30: retries 30 31: end 32: Compiled Resource: —————— # Declared in […]

在Git推送到一台服务器,也拉动推送的文件使用FTP?

对不起,如果标题混乱…所以,我们有2个服务器。 一个用于内部东西(GitLab等)的根服务器和一个我们没有SSH的pipe理服务器。 只是Plesk和FTP。 所以基本上,我git推我的提交到运行gitlab的根服务器。 推完成后,我也希望整个回购或新的提交被拉到托pipe的plesk服务器。 这可能吗? 另外,值得一提的是,plesk为每个域创build子文件夹,所以应该可以指定一个文件夹。

在Debian 6.0.5上安装gitlab

我正在使用下面的指示,试图在Debian 6.0.5上安装gitlab https://github.com/gitlabhq/gitlabhq/blob/stable/doc/installation.md 我在运行以下命令时遇到错误 sudo -u gitlab bundle exec rake gitlab:app:setup RAILS_ENV=production WARNING: #<ArgumentError: Illformed requirement ["#<Syck::DefaultKey:0x00000004b52198> 1.1.4"]> # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = %q{carrierwave} s.version = "0.6.2" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Jonas Nicklas"] ….more error…. s.add_dependency(%q<mini_magick>, [">= 0"]) s.add_dependency(%q<rmagick>, [">= 0"]) end end WARNING: Invalid […]

Gitlab工作stream程和用户configuration

上下文/信息 我按照官方页面上的说明在Ubuntu 12.04上安装了gitlab: https : //github.com/gitlabhq/gitlabhq/blob/stable/doc/installation.md 安装完成后,我可以访问http://machine_ip:3000的Web界面,凭证: [email protected] 5iveL!FE 在我的机器上,我有以下用户: – git(在本教程中没有设置密码) – gitlab(在本教程中设置auto) – my_username(作为root用户使用的普通用户) 在gitlab的web界面中,当我请求的时候,我在my_username上生成了一个公共的rsa键并粘贴在那里。 然后我开始在/ home / my_username / test中用git init和git remote add origin创build一个存储库,如本教程中所示。 当我试图推动我的提交,我得到以下错误: To git@localhost:test.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'git@localhost:test.git' To prevent you from losing history, non-fast-forward updates were rejected Merge […]