// Module included in the following assemblies:
//
// * openshift_images/using_images/using-images-source-to-image.adoc
// * Unused. Can be removed by 4.9 if still unused. Request full peer review for the module if it’s used.

[id="images-using-images-s2i-ruby-pulling-images_{context}"]
= Pulling images for Ruby

//These images come in two options:

//* RHEL 8
//* CentOS 7

//*RHEL 8 Based Images*

The RHEL 8 images are available through the Red Hat Registry.

.Procedure

* To pull the RHEL 8 image, enter the following command for the version of Ruby you want:
+
.Ruby `2.5`
[source,terminal]
----
$ podman pull registry.redhat.io/rhscl/ruby-25-rhel7:latest
----
+
.Ruby `2.6`
[source,terminal]
----
$ podman pull registry.redhat.io/rhscl/ruby-26-rhel7:latest
----
+
.Ruby `2.7`
[source,terminal]
----
$ podman pull registry.redhat.io/rhscl/ruby-27-rhel7:latest
----

////
*CentOS 7 Based Images*

These images are available on link:quay.io[Quay.io].

.Procedure

* To pull the CentOS 7 image, enter the following command for the version of Ruby you want:
+
.Ruby `2.0`
[source,terminal]
----
$ podman pull openshift/ruby-20-centos7
----
+
.Ruby `2.2`
[source,terminal]
----
$ podman pull openshift/ruby-22-centos7
----
+
.Ruby `2.3`
[source,terminal]
----
$ podman pull centos/ruby-23-centos7
----
////

To use these images, you can either access them directly from registry.redhat.io, or push them into your {product-registry}. Additionally, you can create an image stream that points to the image, either in your container image registry or at the external location. Your {product-title} resources can then reference the
image stream.
