Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
923d2428
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
923d2428
编写于
5月 02, 2017
作者:
M
Mike Ricketts
提交者:
Rémy Coutable
5月 02, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
#31560 Add repo parameter to gitaly:install and workhorse:install
上级
d048d926
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
21 addition
and
6 deletion
+21
-6
changelogs/unreleased/31560-workhose-gitaly-from-mirror.yml
changelogs/unreleased/31560-workhose-gitaly-from-mirror.yml
+4
-0
doc/install/installation.md
doc/install/installation.md
+11
-0
lib/tasks/gitlab/gitaly.rake
lib/tasks/gitlab/gitaly.rake
+3
-3
lib/tasks/gitlab/workhorse.rake
lib/tasks/gitlab/workhorse.rake
+3
-3
未找到文件。
changelogs/unreleased/31560-workhose-gitaly-from-mirror.yml
0 → 100644
浏览文件 @
923d2428
---
title
:
rickettm Add repo parameter to gitaly:install and workhorse:install rake tasks
merge_request
:
10979
author
:
M. Ricketts
doc/install/installation.md
浏览文件 @
923d2428
...
...
@@ -423,6 +423,11 @@ which is the recommended location.
sudo -u git -H bundle exec rake "gitlab:workhorse:install[/home/git/gitlab-workhorse]" RAILS_ENV=production
You can specify a different Git repository by providing it as an extra paramter:
sudo -u git -H bundle exec rake "gitlab:workhorse:install[/home/git/gitlab-workhorse,https://example.com/gitlab-workhorse.git]" RAILS_ENV=production
### Initialize Database and Activate Advanced Features
sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production
...
...
@@ -466,6 +471,12 @@ with setting up Gitaly until you upgrade to GitLab 9.2 or later.
# Fetch Gitaly source with Git and compile with Go
sudo -u git -H bundle exec rake "gitlab:gitaly:install[/home/git/gitaly]" RAILS_ENV=production
You can specify a different Git repository by providing it as an extra paramter:
sudo -u git -H bundle exec rake "gitlab:gitaly:install[/home/git/gitaly,https://example.com/gitaly.git]" RAILS_ENV=production
Next, make sure gitaly configured:
# Restrict Gitaly socket access
sudo chmod 0700 /home/git/gitlab/tmp/sockets/private
sudo chown git /home/git/gitlab/tmp/sockets/private
...
...
lib/tasks/gitlab/gitaly.rake
浏览文件 @
923d2428
namespace
:gitlab
do
namespace
:gitaly
do
desc
"GitLab | Install or upgrade gitaly"
task
:install
,
[
:dir
]
=>
:environment
do
|
t
,
args
|
task
:install
,
[
:dir
,
:repo
]
=>
:environment
do
|
t
,
args
|
require
'toml'
warn_user_is_not_gitlab
unless
args
.
dir
.
present?
abort
%(Please specify the directory where you want to install gitaly:\n rake "gitlab:gitaly:install[/home/git/gitaly]")
end
args
.
with_defaults
(
repo:
'https://gitlab.com/gitlab-org/gitaly.git'
)
version
=
Gitlab
::
GitalyClient
.
expected_server_version
repo
=
'https://gitlab.com/gitlab-org/gitaly.git'
checkout_or_clone_version
(
version:
version
,
repo:
repo
,
target_dir:
args
.
dir
)
checkout_or_clone_version
(
version:
version
,
repo:
args
.
repo
,
target_dir:
args
.
dir
)
_
,
status
=
Gitlab
::
Popen
.
popen
(
%w[which gmake]
)
command
=
status
.
zero?
?
'gmake'
:
'make'
...
...
lib/tasks/gitlab/workhorse.rake
浏览文件 @
923d2428
namespace
:gitlab
do
namespace
:workhorse
do
desc
"GitLab | Install or upgrade gitlab-workhorse"
task
:install
,
[
:dir
]
=>
:environment
do
|
t
,
args
|
task
:install
,
[
:dir
,
:repo
]
=>
:environment
do
|
t
,
args
|
warn_user_is_not_gitlab
unless
args
.
dir
.
present?
abort
%(Please specify the directory where you want to install gitlab-workhorse:\n rake "gitlab:workhorse:install[/home/git/gitlab-workhorse]")
end
args
.
with_defaults
(
repo:
'https://gitlab.com/gitlab-org/gitlab-workhorse.git'
)
version
=
Gitlab
::
Workhorse
.
version
repo
=
'https://gitlab.com/gitlab-org/gitlab-workhorse.git'
checkout_or_clone_version
(
version:
version
,
repo:
repo
,
target_dir:
args
.
dir
)
checkout_or_clone_version
(
version:
version
,
repo:
args
.
repo
,
target_dir:
args
.
dir
)
_
,
status
=
Gitlab
::
Popen
.
popen
(
%w[which gmake]
)
command
=
status
.
zero?
?
'gmake'
:
'make'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录