Example 25-2 shows the setup of this second build config, which uses the JAR file generated in Example 25-1. The image that eventually is pushed to the ImageStream random-generator-runtime  can be used in a DeploymentConfig to run the applica‐ tion. Note that the trigger used in Example 25-2 that monitors the result of the S2I build. This trigger causes a rebuild of this runtime image whenever we run an S2I build so that both ImageStreams are always in sync. Example 25-2. Docker build for creating the application image. Figure 25-2. Chained build with S2I for compiling and Docker build for application image apiVersion : v1 kind : BuildConfig metadata : name : runtime spec : source : images : -  from : kind : ImageStreamTag name : random-generator-build:latest paths : -  sourcePath : /deployments/. destinationDir : "." 228  |  Chapter 25: Image Builder