Ruby

This section explains how Shippable DevOps Assembly Lines Platform behaves when you set language: ruby in your shippable.yml for a runCI job,

language: ruby
rvm:
  - 2.4.1

The default version of the language image depends on the machine image selected for the subscription. You can override this by using the pre_ci_boot section or even build your own image from scratch.

Versions

This table helps you choose the right language version tag to set in your shippable.yml for your app. If you don't provide a ruby tag in your YML, the default version will be used.

Any Ruby version tag can be used on any image, but using an image that has the required version cached which will improve your build speed. The language image with a particular tag will be available on the edition of the Runtime AMI with the same version number. If you specify an image tag that does not match the Runtime AMI, it will be used but will also increase your build time.

Ruby Version Language Image Tags
2.4.1 v5.7.3 and later
2.3.4 v5.7.3 and later
2.3.3 v5.6.1 and earlier
2.3.2 v5.6.1 and earlier
2.3.1 v5.6.1 and earlier
2.3.0 v5.6.1 and earlier
2.2.7 v5.7.3 and later
2.2.5 v5.6.1 and earlier
2.2.1 v5.6.1 and earlier
2.1.5 v5.6.1 and earlier
2.0.0 v5.6.1 and earlier
1.9.3 v5.6.1 and earlier
1.8.7 v5.6.1 and earlier
jruby 9.1.12 v5.7.3 and later
jruby 9.1.5 v5.6.1 and earlier
jruby 9.1.2 v5.6.1 and earlier
jruby 9.0.0 v5.3.2 and later
jruby 1.7.27 v5.7.3 and later
jruby 1.7.19 v5.6.1 and earlier
ree 1.8.7 v5.6.1 and earlier

You can use more than one of these to test your app against multiple versions using matrix builds.

Default Behavior

build:
  ci: <is not set>

If you do not set the ci section of the YML, then we will inject this section to your YML definition at runtime:

build:
  ci:
    - bundle install --gemfile=$SHIPPABLE_GEMFILE $SHIPPABLE_BUNDLER_ARGS

Shippable provided Runtime images

Each of the language images is built from the respective base OS version of the image. Since we install all of the packages, CLIs, and services on the base images, these language images get them automatically. For more information visit the respective base image pages.

Ubuntu 16.04

Built from drydock/u16all

Image Release Date Available in AMI
drydock/u16ruball:v5.8.2 Aug 2017 - Latest Version v5.8.2
drydock/u16ruball:v5.7.3 Jul 2017 v5.7.3
drydock/u16ruball:v5.6.1 Jun 2017 v5.6.1
drydock/u16ruball:v5.5.1 May 2017 v5.5.1
drydock/u16ruball:v5.4.1 Apr 2017 v5.4.1
drydock/u16ruball:v5.3.2 Mar 2017 v5.3.2

Ubuntu 14.04

Built from drydock/u14all

Image Release Date Available in AMI
drydock/u14ruball:v5.8.2 Aug 2017 - Latest Version v5.8.2
drydock/u14ruball:v5.7.3 Jul 2017 v5.7.3
drydock/u14ruball:v5.6.1 Jun 2017 v5.6.1
drydock/u14ruball:v5.5.1 May 2017 v5.5.1
drydock/u14ruball:v5.4.1 Apr 2017 v5.4.1
drydock/u14ruball:v5.3.2 Mar 2017 v5.3.2

Further Reading