Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering JBoss Enterprise Application Platform 7

You're reading from   Mastering JBoss Enterprise Application Platform 7 Core details of the Enteprise server supported by clear directions and advanced tips.

Arrow left icon
Product type Paperback
Published in Aug 2016
Publisher Packt
ISBN-13 9781786463630
Length 390 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Luigi Fugaro Luigi Fugaro
Author Profile Icon Luigi Fugaro
Luigi Fugaro
Francesco Marchioni Francesco Marchioni
Author Profile Icon Francesco Marchioni
Francesco Marchioni
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Installation and Configuration FREE CHAPTER 2. The CLI Management Tool 3. Managing EAP in Domain Mode 4. Deploying Applications 5. Load Balancing 6. Clustering EAP 7 7. Logging 8. Configuring Database Connectivity 9. Configuring EAP 7 for Java EE Applications 10. Messaging Administration 11. Securing the Application Server 12. New Security Features of EAP 7 13. Using EAP 7 with Docker 14. Running EAP 7 on the Cloud Using OpenShift

Creating your Docker images

So far we have used a pre-built image with an operating system image. We will now show you how to create your own Docker image, containing EAP 7 and its required dependencies, such as the JDK environment.

In order to do that, we will use a Dockerfile, which is a text file that contains all the commands needed in order to build a specific image.

Note

The available set of commands are described in depth in the site's documentation: https://docs.docker.com/engine/reference/builder/.

Here we will discuss the set of commands required to create an EAP 7 image: create a file named Dockerfile and include the following content:

### Set the base image  
FROM jboss/base-jdk:8 
 
### File Author / Maintainer 
MAINTAINER "Francesco Marchioni" "fmarchio@redhat.com" 
 
### Install EAP 7.0.0 
ADD build/jboss-eap-7.0.0.zip /tmp/ 
RUN unzip /tmp/jboss-eap-7.0.0.zip 
 
### Set Environment 
ENV JBOSS_HOME /opt/jboss/jboss-eap-7.0 
 
### Create EAP User 
RUN ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime