Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !6726

Merged
Created 11 years ago by Administrator@rootOwner

Add rake task to install or upgrade gitlab-shell installation.

  • Overview 10
  • Commits 2
  • Changes 2

Created by: crohr

I think it would be nice if Gitlab came with a rake task to streamline the gitlab-shell installation, based on the existing Gitlab configuration. This task does just that, and allows for upgrading to a newer version of gitlab-shell as well.

rake gitlab:shell:install
# or, with specific version
rake gitlab:shell:install[v1.9.3]

What this does:

  • fetch gitlab-shell code from github, at the given tag/branch/commit given.
  • write gitlab-shell/config.yml based on the existing gitlab config
  • launch the installation process of gitlab-shell
  • write the current PATH to $gitlab-shell-home/.ssh/environment, so that the #!/usr/bin/env ruby shebang in gitlab-shell files returns the right ruby version (i.e. the one currently used by the gitlab app).

The last point requires a change in the sshd configuration to take effect, with potential security issues if the server is also used by normal users (http://www.openssh.org/cgi-bin/man.cgi?query=sshd_config), so if this is an issue I'm happy to remove lines 50 to 58, as it would not apply to an 'install-everything-from-source' gitlab installation anyway.

Loading
Loading

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: dosire

    Can you also change the documentation in doc/install/installation.md to use this new method?

    By Administrator on 2014-04-08T14:27:45 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: crohr

    @dosire added the documentation. Should I keep the old one around in case gitlab-shell is not installed on the same server as the gitlab app ? (actually, is it possible?).

    By Administrator on 2014-04-08T14:45:27 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: MrKeiKun

    questions

    1. What if I want the latest gitlab shell? is there way to do that?
    2. What is gitlab is not installed over /home/git/? (example: /var/git/gitlab) is there way to install gitlab-shell in /var/git/gitlab-shell ?

    By Administrator on 2014-04-08T15:11:52 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: dosire

    @crohr Thanks! It is always installed on the same server, so no need to keep the doc around.

    By Administrator on 2014-04-08T15:11:52 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: crohr

    @MrKeiKun

    1. just run rake gitlab:shell:install[master], and it should reset to the latest commit on the master branch.
    2. That task is using the gitlab settings to know in which place it needs to install stuff. So yes, if you configure user_home to be /var/git (in gitlab.yml), then it will install gitlab-shell at /var/git/gitlab-shell.

    By Administrator on 2014-04-08T15:17:21 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: jvanbaarsen

    @crohr Thanks for this awesome PR ❤

    By Administrator on 2014-04-08T18:10:03 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: MrKeiKun

    @crohr

    nice 👍

    By Administrator on 2014-04-09T02:41:08 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: dosire

    @randx What do you think?

    By Administrator on 2014-04-09T06:46:21 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: dzaporozhets

    I like idea. But I need to test it before merge

    By Administrator on 2014-04-09T18:23:57 (imported from GitLab project)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: dosire

    @crohr It will be a few weeks before @randx has time to review this. If you have smaller MR's in the mean time please submit them separately.

    By Administrator on 2014-04-10T07:04:04 (imported from GitLab project)

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
Assign to
0 Reviewers
Request review from
Milestone
No milestone
None
None
Time tracking
0
Labels
None
Assign labels
  • No matching results
  • Manage project labels
Lock merge request
Unlocked
participants
Reference:
Source branch: github/fork/pkgr/improve-gitlab-shell-installation

    0 pending comments

Menu

Projects Groups Snippets
Help