Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.17 KB

README.Docker.adoc

File metadata and controls

57 lines (41 loc) · 1.17 KB

Docker

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.

Setup

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.

Playground

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

Cleanup

Once you are done with your experiment then you can cleanup the docker environment using the following command.

make down