Minimal Ruby - for when you just don't feel like installing rbenv.
674
Minimal Ruby - for when you just don't feel like installing rbenv and compiling Ruby for the umpteenth time.
This is a Docker Container alongside a suggested Docker Compose file. It makes use of official Ruby Alpine container with some additions:
Copy the docker-compose.yml into your project, treat each "service" as an alias.
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
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
Run commands using:
docker run --rm -it -v "${PWD}:/app" bentheax/minimal-ruby bundle ...
docker pull bentheax/minimal-ruby:latest