Running any Docker image on Openshift

In this tutorial we will learn how to run a Docker image, built from a Dockerfile, on Openshift. So our starting point will be a simple Dockerfile definition which pulls the default “WildFly” image and adds some customizations to it. In our case, it simply adds a management user: FROM jboss/wildfly RUN /opt/jboss/wildfly/bin/add-user.sh admin Password1! … Read more

Java EE example application on Openshift

In this tutorial we will learn how to deploy a Java EE application on WildFly Container image running on the top of OpenShift Container Platform using OKD. First of all, you need an OpenShift Container Platform cluster available. We suggest you having a look at the following article to learn how to install the Community … Read more

How to customize WildFly applications on Openshift

In this tutorial Java EE example application on Openshift we have deployed a sample Java EE application using a database on Openshift. We will explore now other possibilities such as running CLI commands as part of the Vuild process and include a set of custom modules and finally we will learn how to add artifacts … Read more

Configuring Persistent Storage on Openshift

This tutorial will introduce you to configuring Storage on Openshift and use it for building stateful applications By default, OpenShift/Kubernetes containers don’t store data persistently. In practice, when you start an a container from an immutable Docker image Openshift will use an ephemeral storage, that is to say that all data created by the container … Read more

Getting started with Openshift using OKD

OKD is a distribution of Kubernetes optimized for continuous application development and multi-tenant deployment. OKD is the upstream Kubernetes distribution embedded in Red Hat OpenShift and can be used to add developer and operations-centric tools on top of Kubernetes to enable rapid application development, easy deployment and scaling, and long-term lifecycle maintenance for small and … Read more

Getting started with Podman

Podman is a container runtime which provides the same features of Docker. The main difference is that it doesn’t require any running daemon (like dockerd) to run on your system. Pods and containers processes are created as children of the Podman tool. Besides it, it can also run without root privileges. So let’s see how … Read more

How to start an openshift local cluster using oc utility

The OpenShift client utility named oc can start a local OpenShift cluster, which includes all of the required services, such as an internal registry, a router, templates, and so on. This is one of the easiest ways to start a development environment. oc cluster up creates a default user and project, and once it is complete, it will allow you to use any … Read more

Dockerfile tutorial

In this tutorial, we will learn the syntax of Dockerfile with some examples for each available command. Docker can build images automatically by reading the instructions from a Dockerfile. A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image. Using docker build … Read more

Access a local volumes from Docker Container

There are two types of volumes in Docker. The first one we will learn now are bind mount volumes which use any user-specified directory or file on the host operating system.. You can use Bind volumes when you want to provide to the container some resources which are available on the local, host machine. In … Read more