From the course: Automating Kubernetes with GitOps

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Using OpenShift source to image

Using OpenShift source to image - Kubernetes Tutorial

From the course: Automating Kubernetes with GitOps

Using OpenShift source to image

- So the reason that we are talking about OpenShift at all in this course is source-two-image. Because source-to-image is something that can be useful in a GitHub's environment. So source-to-image allows you to run an application directly from source code and also to automatically update it. You can use the oc new-app command which allows you to work with source-to-image directly. Source-to-image connects source code to a source-to-image image stream builder image to create a temporarily builder Pod that writes an application image to the internal image registry. So what is the purpose? The purpose is you have source code and you want to build your source code to a running application in a container image. In order to do so, the source code is combined with the builder image and the result is your application image. And based on this custom application image that source-to-image will generate for you, a deployment is created. Now source-to-image was developed to take away the need for…

Contents