The first S2I lab will use a very simple PHP application that displays the PHP configuration using a standard PHP function—phpinfo(). It's composed of a single index.php file, with the following content:
$ cat index.php
<?php
phpinfo();
?>
This application is enough to demonstrate a basic S2I build. We have already prepared a Git repository on GitHub, which contains the code of our application. The repository is located at https://github.com/neoncyrex/phpinfo.git, and is going to be used in this lab.
First, we need to create a separate project for our new lab, as follows:
$ oc new-project phpinfo
Now using project "phpinfo" on server "https://localhost:8443".
<OMITTED>
The oc new-app command can build an application from its source code, using either a local or remote Git repository.
Let's clone the...