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:
S2I images are available for you to use directly from the OKD web console by following procedure:
Log in to the OKD web console using your login credentials. The default view for the OKD web console is the Administrator perspective.
Use the perspective switcher to switch to the Developer perspective.
In the +Add view, select an existing project from the list or use the Project drop-down list to create a new project.
Choose All services under the tile Developer Catalog.
Select the Type Builder Images then can see the available S2I images.
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:
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.