This is a cache of https://docs.openshift.com/rosa/openshift_images/using_images/using-s21-images.html. It is a snapshot of the page at 2024-11-24T03:12:34.445+0000.
Source-to-image - Using images | Images | Red Hat OpenShift <strong>service</strong> on AWS
×

You can use the Red Hat Software Collections images as a foundation for applications that rely on specific runtime environments such as Node.js, Perl, or Python. You can use the Red Hat Java Source-to-Image for OpenShift documentation as a reference for runtime environments that use Java. Special versions of some of these runtime base images are referred to as Source-to-Image (S2I) images. With S2I images, you can insert your code into a base image environment that is ready to run that code.

S2I images include:

  • .NET

  • Java

  • Go

  • Node.js

  • Perl

  • PHP

  • Python

  • Ruby

S2I images are available for you to use directly from the Red Hat OpenShift service on AWS web console by following procedure:

  1. Log in to the Red Hat OpenShift service on AWS web console using your login credentials. The default view for the Red Hat OpenShift service on AWS web console is the Administrator perspective.

  2. Use the perspective switcher to switch to the Developer perspective.

  3. In the +Add view, use the Project drop-down list to select an existing project or create a new project.

  4. Click All services in the Developer Catalog tile.

  5. Click Builder Images under Type to see the available S2I images.

S2I images are also available though the Cluster Samples Operator.

Source-to-image build process overview

Source-to-image (S2I) produces ready-to-run images by injecting source code into a container that prepares that source code to be run. It performs the following steps:

  1. Runs the FROM <builder image> command

  2. Copies the source code to a defined location in the builder image

  3. Runs the assemble script in the builder image

  4. Sets the run script in the builder image as the default command

Buildah then creates the container image.