Wrapper around the jpetazzo/dind Docker image.
This image has Ruby pre-installed. It also comes with the Bundler gem installed and sane Bundler configuration values.
The default Ruby version packaged in this image is 2.1.3.
ruby-install comes pre-installed in the image, so installing a new Ruby
version is easy:
RUN ruby-install ruby 2.2.1
Note that PATH by default points to the default Ruby version. You can either
install a ruby version manager (like chruby), or alter the path:
ENV PATH /opt/rubies/ruby-2.2.1/bin:$PATH
# PATH:
# - /opt/rubies/ruby-2.2.1/bin
# - /usr/local/sbin
# - /usr/local/bin
# - /usr/sbin
# - /usr/bin
# - /sbin
# - /bin
# - /opt/rubies/ruby-2.1.3/bin
Be sure to prepend the new path, or else the default Ruby version will take precedence.
MIT - see the accompanying LICENSE file for details.