In the previous chapter, you learned how to build applications from Dockerfile, how to use oc new-app to initiate a Docker build, and finally, how to use oc start-build to start a new build from an existing build config.
In this chapter, we will discuss the most frequently used application images that are already available on Docker Hub. Every now and then, it is required to build a custom image that contains custom software or is align with company security policy/standards. You will learn how OpenShift automates the build process through a Source-to-Image (S2I) build strategy, which is one of its main advantages. You will also learn how it allows you to build an image from your application's source code and then run it as a container.
We will cover the following topics in this chapter:
- PHP S2I
- Building a simple PHP application...