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" ...
Get Mastering JBoss Enterprise Application Platform 7 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.