Sign inSign up

bentheax/minimal-ruby

By bentheax

Updated over 9 years ago

Minimal Ruby - for when you just don't feel like installing rbenv.

Image
0

583

bentheax/minimal-ruby repository overview

minimal-ruby (GitHub)

Minimal Ruby - for when you just don't feel like installing rbenv and compiling Ruby for the umpteenth time.

Background

This is a Docker Container alongside a suggested Docker Compose file. It makes use of official Ruby Alpine container with some additions:

  1. Install the dependencies required by every native extension
  2. Set up a mount of the current project directory, install bundled gems into it

Usage (compose file)

Copy the docker-compose.yml into your project, treat each "service" as an alias.

bundle

Since no reliable piece of Ruby software exists without a Gemfile, this is the primary means of interaction. To start off:

docker-compose run --rm bundle install

After that, run whatever command you want e.g.

docker-compose run --rm bundle exec rspec
sh

You may need this if you want to run a command that does not begin with bundle. Opens an interactive shell.

docker-compose run --rm sh

Usage (raw)

Run commands using:

docker run --rm -it -v "${PWD}:/app" bentheax/minimal-ruby bundle ...

Tag summary

Content type

Image

Digest

Size

93.3 MB

Last updated

over 9 years ago

docker pull bentheax/minimal-ruby