What does it do?#

Runs Ruby, RubyGems, Bundler and RuboCop inside Docker containers, no local Ruby install required. Like the Images and AI Tools aliases, this file is not sourced automatically — you need to add it explicitly.

Enabling it#

Bash / zsh#

source ~/.docker-devtools/docker-devtools.sh
source ~/.docker-devtools/ruby/docker-ruby-devtools.sh

PowerShell#

. "$HOME/.docker-devtools/docker-devtools.ps1"
. "$HOME/.docker-devtools/ruby/docker-ruby-devtools.ps1"

Source the root script first — docker_alias / Invoke-DockerAlias must already be defined before this file loads.

Commands#

Commands you can run to use this.

Aliases#

AliasToolImage
ruby-dockerRuby REPL / scriptsruby:alpine
ruby-bash-dockerInteractive shell in Ruby containerruby:alpine
gem-dockerRubyGems package managerruby:alpine
bundle-dockerBundler dependency managerruby:alpine
rubocop-dockerRuboCop — Ruby style linter/formatter (community image)pipelinecomponents/rubocop:latest

Usage#

# Install gems with Bundler
bundle-docker install

# Lint and auto-correct with RuboCop
rubocop-docker -A .

The Sources#

GitHub: https://github.com/willhallonline/docker-devtools-aliases

Find out more#