Dockerfile build customization

As we saw before, OpenShift can build an application from Dockerfile. Sometimes, application source code is updated and there is a need to initiate the build process again using the new source code. OpenShift supports this functionality through the oc start-build command.

During this section, we will initiate a build process using the new source code of the application using the image stream created recently by the oc new-app command.

We built a Redis application from source code using a specific directory 3.0.

The source code contains another Dockerfile, which uses the newer version 4.0:

$ tree redis/4.0/redis/4.0/├── 32bit│   ├──│   └── Dockerfile├── alpine│ ...

Get Learn OpenShift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.