This Docker image is only meant to be used for development, and contains some necessary setup to spin up docker containers with multiple ruby environment.
By default it uses the most recent ruby version for docker environment, but if
you want to run it in any specific version then you can set it up by exporting
RUBY_IMAGE
environment variable in your shell:
export RUBY_IMAGE=ruby:3.0-buster
Once everything is set then you would need to build the development images for the first time and you can do that using:
make setup
The setup process will install all dependencies and it will also setup a volume to speed up the repeated gem installation.
The Makefile
contains two target for tests, and you can run the tests using
any of the following commands:
make test
# or
make rspec
If you need more control, and you want to do some development on the go then you can get into the container using:
make ssh