Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
4f61061c
Commit
4f61061c
authored
Sep 22, 2014
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support sockets in 'rake gitlab:shell:install'
parent
2fc6f8f2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
CHANGELOG
CHANGELOG
+1
-0
doc/install/installation.md
doc/install/installation.md
+1
-1
lib/tasks/gitlab/shell.rake
lib/tasks/gitlab/shell.rake
+9
-4
No files found.
CHANGELOG
View file @
4f61061c
...
@@ -32,6 +32,7 @@ v 7.3.0
...
@@ -32,6 +32,7 @@ v 7.3.0
- Zen mode (fullscreen) for issues/MR/notes (Robert Schilling)
- Zen mode (fullscreen) for issues/MR/notes (Robert Schilling)
- Add ability to configure webhook timeout via gitlab.yml (Wes Gurney)
- Add ability to configure webhook timeout via gitlab.yml (Wes Gurney)
- Sort project merge requests in asc or desc order for updated_at or created_at field (sponsored by O'Reilly Media)
- Sort project merge requests in asc or desc order for updated_at or created_at field (sponsored by O'Reilly Media)
- Add Redis socket support to 'rake gitlab:shell:install'
v 7.2.1
v 7.2.1
- Delete orphaned labels during label migration (James Brooks)
- Delete orphaned labels during label migration (James Brooks)
...
...
doc/install/installation.md
View file @
4f61061c
...
@@ -257,7 +257,7 @@ We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](da
...
@@ -257,7 +257,7 @@ We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](da
GitLab Shell is an SSH access and repository management software developed specially for GitLab.
GitLab Shell is an SSH access and repository management software developed specially for GitLab.
# Run the installation task for gitlab-shell (replace `REDIS_URL` if needed):
# Run the installation task for gitlab-shell (replace `REDIS_URL` if needed):
sudo -u git -H bundle exec rake gitlab:shell:install[v1.9.7] REDIS_URL=
redis://localhost:6379
RAILS_ENV=production
sudo -u git -H bundle exec rake gitlab:shell:install[v1.9.7] REDIS_URL=
unix:/var/run/redis/redis.sock
RAILS_ENV=production
# By default, the gitlab-shell config is generated from your main GitLab config.
# By default, the gitlab-shell config is generated from your main GitLab config.
# You can review (and modify) the gitlab-shell config as follows:
# You can review (and modify) the gitlab-shell config as follows:
...
...
lib/tasks/gitlab/shell.rake
View file @
4f61061c
...
@@ -24,8 +24,6 @@ namespace :gitlab do
...
@@ -24,8 +24,6 @@ namespace :gitlab do
Dir
.
chdir
(
target_dir
)
do
Dir
.
chdir
(
target_dir
)
do
sh
"git fetch origin && git reset --hard $(git describe
#{
args
.
tag
}
|| git describe origin/
#{
args
.
tag
}
)"
sh
"git fetch origin && git reset --hard $(git describe
#{
args
.
tag
}
|| git describe origin/
#{
args
.
tag
}
)"
redis_url
=
URI
.
parse
(
ENV
[
'REDIS_URL'
]
||
"redis://localhost:6379"
)
config
=
{
config
=
{
user:
user
,
user:
user
,
gitlab_url:
gitlab_url
,
gitlab_url:
gitlab_url
,
...
@@ -34,14 +32,21 @@ namespace :gitlab do
...
@@ -34,14 +32,21 @@ namespace :gitlab do
auth_file:
File
.
join
(
home_dir
,
".ssh"
,
"authorized_keys"
),
auth_file:
File
.
join
(
home_dir
,
".ssh"
,
"authorized_keys"
),
redis:
{
redis:
{
bin:
%x{which redis-cli}
.
chomp
,
bin:
%x{which redis-cli}
.
chomp
,
host:
redis_url
.
host
,
port:
redis_url
.
port
,
namespace:
"resque:gitlab"
namespace:
"resque:gitlab"
}.
stringify_keys
,
}.
stringify_keys
,
log_level:
"INFO"
,
log_level:
"INFO"
,
audit_usernames:
false
audit_usernames:
false
}.
stringify_keys
}.
stringify_keys
redis_url
=
URI
.
parse
(
ENV
[
'REDIS_URL'
]
||
"redis://localhost:6379"
)
if
redis_url
.
scheme
==
'unix'
config
[
'redis'
][
'socket'
]
=
redis_url
.
path
else
config
[
'redis'
][
'host'
]
=
redis_url
.
host
config
[
'redis'
][
'port'
]
=
redis_url
.
port
end
# Generate config.yml based on existing gitlab settings
# Generate config.yml based on existing gitlab settings
File
.
open
(
"config.yml"
,
"w+"
)
{
|
f
|
f
.
puts
config
.
to_yaml
}
File
.
open
(
"config.yml"
,
"w+"
)
{
|
f
|
f
.
puts
config
.
to_yaml
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment