Source-to-image build process overview

Source-to-image (S2I) is a build process in Red Hat OpenShift Container Platform that injects your source code into a container image. S2I automates the creation of ready-to-run container images from your application source code without manual configuration.

S2I 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.