Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.41 KB

File metadata and controls

35 lines (23 loc) · 1.41 KB

Ruby Install Script

Installs Ruby, rvm, rbenv, common Ruby utilities, and needed dependencies.

Script status: Stable

OS support: Debian 9+, Ubuntu 16.04+, and downstream distros.

Syntax

./ruby-debian.sh [Ruby version] [Non-root user] [Add rvm to rc files flag] [Install tools flag]
Argument Default Description
Ruby version latest Version of Ruby to install. A value of none will skip this step and just install rvm, rbenv, and tools.
Non-root user automatic Specifies a user in the container other than root that will use Ruby, rvm, and/or rbenv. A value of automatic will cause the script to check for a user called vscode, then node, codespace, and finally a user with a UID of 1000 before falling back to root.
Add to rc files flag true A true/false flag that indicates whether sourcing the rvm script should be added to /etc/bash.bashrc and /etc/zsh/zshrc.
Install tools flag true A true/false flag that indicates whether tools like rake, ruby-debug-ide, and debase should be installed.

Usage

Usage:

  1. Add ruby-debian.sh to .devcontainer/library-scripts

  2. Add the following to your .devcontainer/Dockerfile:

    COPY library-scripts/ruby-debian.sh /tmp/library-scripts/
    RUN apt-get update && bash /tmp/library-scripts/ruby-debian.sh

That's it!