Sha256: caa5ddd57d11e0c92a7d947ff9f6ad2a52e878cd98efea685e7274ba31039c02
Contents?: true
Size: 1.17 KB
Versions: 6
Compression:
Stored size: 1.17 KB
Contents
= 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: [source,sh] ---- 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: [source,sh] ---- 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: [source,sh] ---- 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: [source,sh] ---- make ssh ---- == Cleanup Once you are done with your experiment then you can cleanup the docker environment using the following command. [source,sh] ---- make down ----
Version data entries
6 entries across 6 versions & 1 rubygems