This Feature supports Linux images that ship one of the following package managers: apt, dnf/yum, apk, zypper, or pacman. The script detects the available package manager and installs the build dependencies that ruby-build needs.
bash is required to execute the install.sh script.
- Ruby is installed under
/usr/local/rubies/<version>by ruby-build. - The default Ruby is exposed via the
/usr/local/rubies/currentsymlink, which is placed on thePATHthroughcontainerEnv. ruby-builditself is cloned to/usr/local/share/ruby-buildand symlinked into/usr/local/bin/ruby-buildso additional versions can be installed later.- A shared
rubygroup owns/usr/local/rubies; the configured non-root user is added to it sogem installcan write into the active Ruby tree withoutsudo.