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. 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:
Java
Node.js
Perl
PHP
Python
Ruby
s2i images are available for you to use directly from the OpenShift Container Platform web UI by selecting Catalog → Developer Catalog.
s2i images are also available though the Configuring 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.
For instructions on using the Cluster Samples Operator, see the Configuring the Cluster Samples Operator.
For more information on s2i builds, see the builds strategy documentation on s2i builds.
For troubleshooting assistance for the s2i process, see Troubleshooting the Source-to-Image process.
For an overview of creating images with s2i, see Creating images from source code with source-to-image.
For an overview of testing s2i images, see About testing s2i images.