Book Image

Learn OpenShift

By : Denis Zuev, Artemii Kropachev, Aleksey Usov
Book Image

Learn OpenShift

By: Denis Zuev, Artemii Kropachev, Aleksey Usov

Overview of this book

Docker containers transform application delivery technologies to make them faster and more reproducible, and to reduce the amount of time wasted on configuration. Managing Docker containers in the multi-node or multi-datacenter environment is a big challenge, which is why container management platforms are required. OpenShift is a new generation of container management platforms built on top of both Docker and Kubernetes. It brings additional functionality to the table, something that is lacking in Kubernetes. This new functionality significantly helps software development teams to bring software development processes to a whole new level. In this book, we’ll start by explaining the container architecture, Docker, and CRI-O overviews. Then, we'll look at container orchestration and Kubernetes. We’ll cover OpenShift installation, and its basic and advanced components. Moving on, we’ll deep dive into concepts such as deploying application OpenShift. You’ll learn how to set up an end-to-end delivery pipeline while working with applications in OpenShift as a developer or DevOps. Finally, you’ll discover how to properly design OpenShift in production environments. This book gives you hands-on experience of designing, building, and operating OpenShift Origin 3.9, as well as building new applications or migrating existing applications to OpenShift.
Table of Contents (24 chapters)

PHP S2I

OpenShift supports S2I builds for PHP, and also for many other runtimes. The S2I process produces a ready-to-run image by combining the source code of an application with a base builder image, which prepares the application. The builder is a special image that is able to handle application installation and configuration for a particular programming language/framework. For example, the PHP builder can only handle PHP source code, and it doesn't support Java by default. Most of the frequently used programming languages, like Python, Ruby, Java, and Node.js, are already covered by OpenShift built-in builders. The S2I process involves the following steps:

  1. Determining the correct base builder image. This process relies on complex heuristics and primarily involves looking for specific files and file extensions, like Gemfile for Ruby on Rails, or requirements.txt for Python...