Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Ruby

Installs Ruby and a version manager (mise or rbenv) along with the dependencies needed to build Ruby.

Example Usage

Using mise (default)

"features": {
    "ghcr.io/rails/devcontainer/features/ruby:1": {
        "version": "3.3.0"
    }
}

Using rbenv

"features": {
    "ghcr.io/rails/devcontainer/features/ruby:1": {
        "version": "3.3.0",
        "versionManager": "rbenv"
    }
}

Using mise explicitly

"features": {
    "ghcr.io/rails/devcontainer/features/ruby:1": {
        "version": "3.3.0",
        "versionManager": "mise"
    }
}

Opting in to precompiled Rubies with mise

"features": {
    "ghcr.io/rails/devcontainer/features/ruby:1": {
        "version": "3.3.0",
        "versionManager": "mise",
        "usePrecompiledRubies": true
    }
}

When using mise, this feature keeps ruby.compile=true by default so Ruby is compiled from source. Set usePrecompiledRubies to true to make mise prefer precompiled Rubies when they are available.

Options

Options Id Description Type Default Value
version The version of ruby to be installed string 4.0.2
versionManager The version manager to use for Ruby (mise or rbenv) string mise
usePrecompiledRubies Use precompiled Rubies with mise when available boolean false

Customizations

VS Code Extensions

OS Support

This Feature should work on recent versions of Debian/Ubuntu-based distributions with the apt package manager installed.

bash is required to execute the install.sh script.