Skip to content

Conversation

@somewatson
Copy link

This mod adds rbenv to code-server, to be installed/updated during container start.

rbenv is a version manager tool for the Ruby programming language on Unix-like systems. It is useful for switching between multiple Ruby versions on the same machine and for ensuring that each project you are working on always runs on the correct Ruby version.

Similar to nvm for Node.js or pyenv for Python, rbenv is useful for developing programs in the Ruby programming language.

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

Description:

This mod includes the following features:

  1. Installs rbenv
  2. Adds shell completions for rbenv in bash and zsh.
  3. Includes ruby-build, which allows you to run the rbenv install command.
  4. It will automatically check for an existing ruby-build installation upon docker build
  5. In order to compile Ruby, you need the proper toolchain and build environment. The required system packages can be found in the documentation. This mod will install these requirements for you.

Benefits of this PR and context:

This is in response to an issue I created #1074.

rbenv is a version manager tool for the Ruby programming language on Unix-like systems. It is useful for switching between multiple Ruby versions on the same machine and for ensuring that each project you are working on always runs on the correct Ruby version.

Similar to nvm for Node.js or pyenv for Python, rbenv is useful for developing programs in the Ruby programming language.

How Has This Been Tested?

Yes, I'm running it on all of my instances of code-server.

I tested to make sure it works properly on a fresh install. I also ensured it is idempotent and works on an existing home folder /config.

Source / References:

This mod adds rbenv to code-server, to be installed/updated during container start.

rbenv is a version manager tool for the Ruby programming language on Unix-like systems. It is useful for switching between multiple Ruby versions on the same machine and for ensuring that each project you are working on always runs on the correct Ruby version.

This mod includes adding shell completions for rbenv in bash and zsh.

Includes ruby-build, which allows you to run the rbenv install command.

If it's already installed, make sure to upgrade it by pulling the latest changes from the git repo

Adds the required packages of the build environment

Need these pre-requisites in order to install ruby in rbenv

Set permissions for ~/.rbenv

It needs to be able to write into that directory when installing new versions of Ruby
Make the ruby-build folder safe to pull from even when its not owned by root
@LinuxServer-CI
Copy link

PR build pushed to ghcr.io/linuxserver/mods:pull_request_1091

@somewatson somewatson mentioned this pull request Nov 30, 2025
1 task
@github-project-automation github-project-automation bot moved this from PRs to PRs Approved in Issue & PR Tracker Dec 1, 2025
@aptalca aptalca merged commit 07da3ec into linuxserver:code-server-rbenv Dec 1, 2025
5 checks passed
@LinuxServer-CI LinuxServer-CI moved this from PRs Approved to Done in Issue & PR Tracker Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants