Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
omnibus-gitlab
omnibus-gitlab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 867
    • Issues 867
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 77
    • Merge Requests 77
  • Requirements
    • Requirements
    • List
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • GitLab.org
  • omnibus-gitlabomnibus-gitlab
  • Merge Requests
  • !1707

Merged
Opened Jul 02, 2017 by Stan Hu@stanhuOwner

Disable RubyGems in gitlab-shell scripts for performance

  • Overview 26
  • Commits 6
  • Pipelines 10
  • Changes 2

By default, RubyGems is enabled, which causes the Ruby interpreter to load 600+ additional files at startup when gitlab-shell is designed not to use any external gems.

We tried to make this part of gitlab-shell source, but had to revert gitlab-shell!141 (merged) because it turns out Linux kernels don't allow shebangs with multiple arguments (e.g. #!/bin/env ruby --disable-gems). This is the simplest method to get it to work. Source installs will just be a bit slower unless this flag is set to the default via RUBYOPT or compiler flag.

Edited Jul 06, 2017 by Stan Hu
Assignee
Assign to
Reviewer
Request review from
9.4
Milestone
9.4 (Past due)
Assign milestone
Time tracking
Reference: gitlab-org/omnibus-gitlab!1707
Source branch: sh-disable-rubygems-for-gitlab-shell

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.