Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • omnibus-gitlab omnibus-gitlab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 984
    • Issues 984
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 62
    • Merge requests 62
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • GitLab.org
  • omnibus-gitlabomnibus-gitlab
  • Merge requests
  • !1707
Merged
Created Jul 02, 2017 by Stan Hu@stanhuOwner
  • Review changes

  • Download
  • Email patches
  • Plain diff

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 Nov 17, 2021 by GitLab Release Tools Bot
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: sh-disable-rubygems-for-gitlab-shell