Pull the Oracle Java Base Image
1. Pull the Oracle Java Server image from container-registry.oracle.com Version: 8u281
2. Before pulling this image from the Container Registry, make sure that the Docker client has logged in successfully using the docker login command:
# docker login container-registry.oracle.com
Username
Password
Login successful
3. Use your Oracle SSO username and password to log in to the Oracle Registry.
4. Pull Oracle Java base image version 8u281
$ docker pull container-registry.oracle.com/java/serverjre:8u281
Important: The resulting images will NOT have a TomEE pre-configured. You must extend the image with your own Dockerfile, and create your TomEE environment.
To customize your own TomEE environment extended this image. We recommend you create your own environment by writing your own Dockerfiles to deploy the applications.
5. In the Dockerfile extend the Oracle Java image with the 'FROM container-registry.oracle.com/java/serverjre:8u281
' directive.
TomEE Directory Structure
Few important directories in the TomEE server are as follows:
- /bin: This directory contains the startup and shutdown scripts for both Windows and Linux.
- /conf: This directory contains the main configuration files for TomEE. The two most important are the server.xml and the global tomee.xml.
- /lib: This directory contains Java Archive files that TomEE is dependent upon.
- /logs: This directory contains TomEE log files.
- /webapps: All web applications are deployed in this directory; it contains the WAR file.
- /work: This is the directory in which TomEE will place all servlets that are generated.