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.shPowerShell#
. "$HOME/.docker-devtools/docker-devtools.ps1"
. "$HOME/.docker-devtools/ruby/docker-ruby-devtools.ps1"Source the root script first —
docker_alias/Invoke-DockerAliasmust already be defined before this file loads.
Commands#
Commands you can run to use this.
Aliases#
| Alias | Tool | Image |
|---|---|---|
ruby-docker | Ruby REPL / scripts | ruby:alpine |
ruby-bash-docker | Interactive shell in Ruby container | ruby:alpine |
gem-docker | RubyGems package manager | ruby:alpine |
bundle-docker | Bundler dependency manager | ruby:alpine |
rubocop-docker | RuboCop — 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