Introduction
Eclipse Che runs on different kind of infrastructure and container engine:
-
Docker
-
OpenShift: OpenShift Container Platform (OCP), OpenShift Online (OSO), OpenShift Dedicated (OCD), MiniShift
-
Kubernetes
Each of the infrastructures is providing its own specificities which are detailed in this page.
Comparison Table
Feature |
Docker |
OpenShift |
Kubernetes |
|
root access |
yes |
yes (See: Configuration) |
yes |
|
https |
no |
yes (See: Configuration) |
yes |
|
scalability |
no |
yes (See: Configuration) |
yes |
|
priviliged containers |
yes |
yes (configurable in OpenShift) |
yes |
|
health checks |
no |
yes |
yes |
|
persistent preview URLs |
no |
yes |
yes |
|
installers |
yes |
yes (some installers may require sudo access) |
yes |
|
file system permissions |
not limited |
limited to directories owned by root group |
not limited |
Running Che on Docker
Che on Docker isn’t scalable, i.e. one cannot add more nodes to run workspaces. Of course, it is possible to use a fairly large instance with 8+ CPUs and 32+ RAM, however at some point a great number of running containers (with heavy processes running in them) can make the node unresponsive. This will both affect workspace master and all running workspaces. At the same time, Che on Docker is flexible and easily configurable for an ordinary user.
Root Access
With Che on Docker, users can have root access in workspace containers. This means you can run system services and install software in runtime.
SSH Access
By default, sshd starts in all ready-to-go stack images. You can connect to a remote workspace using ssh keys or username/password (available in custom stacks only) or sync workspace project files to a local machine.
Privileged Containers
Che on Docker allows workspace containers to be running in a privileged mode.
Though deploying administering Che on Docker may seem a little bit easier than doing it in OpenShift, it’s OpenShift that unleashes the power of Eclipse Che as a workspace server and cloud IDE.
Deploying to OpenShift
When deployed to OpenShift, Che provides the following features that are not available in Che on Docker:
Scalability
Che talks to OpenShift API to create workspace pods, and it is OpenShift that schedules them to available nodes. OpenShift cluster admin can add and remove nodes (or label them as those that are not ready to run pods) depending on demand for running Che workspaces.
HTTPS support
HAProxy that runs in an OpenShift cluster takes care of creating secure routes, thus HTTPS support is provided by OpenShift itself.
Persistent Preview URLs
To access running applications and processes in Che workspaces, Che creates services and routes that are persistent URLs.
Health Checks
OpenShift restarts failed deployments and offers health checks for pods. This can significantly minimize the effect of infrastructure outages.