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 OpenShift Container Platform web console by following procedure:
Log in to the OpenShift Container Platform web console using your login credentials. The default view for the OpenShift Container Platform web console is the Administrator perspective.
Use the perspective switcher to switch to the Developer perspective.
In the +Add view, use the Project drop-down list to select an existing project or create a new project.
Click All services in the Developer Catalog tile.
Click Builder Images under Type to see the available s2i images.
s2i images are also available though the Cluster Samples Operator.
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:
Runs the FROM <builder image>
command
Copies the source code to a defined location in the builder image
Runs the assemble script in the builder image
Sets the run script in the builder image as the default command
Buildah then creates the container image.