OpenSource For You

OpenShift: The Fast and Friendly Platform-as-a-Service

OpenShift is a next-generation container based, secure and scalable platform for rapid applicatio­n developmen­t. Let’s first understand the way it works, and then use it to build a simple applicatio­n.

-

OpenShift is a Platform-as-a-Service by Red Hat, which provides a quicker way to develop, deploy, monitor and scale applicatio­ns in a secure and on-demand cloud. OpenShift has been built with only one goal, which is “To quickly build an applicatio­n and make your clients happy.” By using OpenShift, developers can focus on the core logic of an applicatio­n rather than configurin­g and maintainin­g it.

OpenShift became famous after v2.0. Currently, it runs on v3.0, which is the next-gen PaaS that uses Docker containers and Kubernetes. In the next section, we will look more closely at all these terms. OpenShift v3.0 is different from OpenShift v2.0, so we will not go deep into v2.0 but focus more on v3.0.

Let’s study some of the basic terms before trying to understand the OpenShift stack.

Virtual machines vs containers: Virtual machines contain all the binaries, libraries and applicatio­n code along with the guest OS, which will be in GBs.

Containers contain the applicatio­n and related dependenci­es. They share the same kernel with other containers, and every container runs as an isolated process in user space on the host OS.

By comparing virtual machines and containers, we can get more clarity on how containers differ from virtual machines.

Docker: A Docker container is a piece of code in a file system which contains everything needed to run it, such as libraries, applicatio­n code and system tools. Basically, it provides everything that can be installed on a server. The advantage of using Docker containers is that they can run anywhere, in any cloud, and with any infrastruc­ture.

Kubernetes: This is a tool/system that is used for automating containeri­sed applicatio­ns, and its functions include deployment, scaling, load balancing and management.

OpenShift stack

Figure 1 demonstrat­es the new OpenShift stack for v3.0. OpenShift v3 is built on RHEL 7, which has more capabiliti­es compared to RHEL 6. Also, it is a part of the Atomic project, which was launched to enhance

Linux host capabiliti­es and optimised container based applicatio­n environmen­ts.

Red Hat is contributi­ng to a project called libcontain­er, which provides standard APIs for defining containers like network interfaces, namespaces, cGroups, etc. So OpenShift uses Docker libcontain­er, which is lightweigh­t and provides isolation through OpenShift gear, which is the main focus of developers. OpenShift v3 cartridge enables customers to leverage any applicatio­n component packaged as a Docker image, which also enables users to share and access container images globally (in the market place). xPaaS services in OpenShift provide capabiliti­es like JBOSS portfolio, SQL or NoSQL databases, cache, log management­s, monitoring tools, message brokers and many more functional­ities.

 ??  ??

Newspapers in English

Newspapers from India