Book Image

Hands-On Cloud Development with WildFly

By : Tomasz Adamski
Book Image

Hands-On Cloud Development with WildFly

By: Tomasz Adamski

Overview of this book

The book starts by introducing you to WildFly Swarm—a tool that allows you to create runnable microservices from Java EE components. You’ll learn the basics of Swarm operation—creating microservices containing only the parts of enterprise runtime needed in a specific case. Later, you’ll learn how to configure and test those services. In order to deploy our services in the cloud, we’ll use OpenShift. You’ll get to know basic information on its architecture, features, and relationship to Docker and Kubernetes. Later, you’ll learn how to deploy and configure your services to run in the OpenShift cloud. In the last part of the book, you’ll see how to make your application production-ready. You’ll find out how to configure continuous integration for your services using Jenkins, make your application resistant to network failures using Hystrix, and how to secure them using Keycloak. By the end of the book, you’ll have a functional example application and will have practical knowledge of Java EE cloud development that can be used as a reference in your other projects.
Table of Contents (14 chapters)

Learning about the source-to-image build

As we mentioned, the source-to-image build needs a builder image and you have to provide it each time when you are configuring such a build. The builder images contain scripts that are responsible for assembling and running the application. The assembling scripts will be run in phase 3 of the build algorithm, and the run script will be used as the start command of the resulting Docker image. During the build, the layer that contains the runnable application will be added on top of the builder image, the run script will be set as the image starting command, and the resulting image will be committed.

We know the basics of source-to-image builds, so now we can explain what we did when deploying our application in the last chapters. Let's start with the following command that we have invoked before running any builds:

oc create -f https...