Oracle is finding ways for organizations using WebLogic Server to run important workloads, to move those workloads into the cloud, and to simplify and speed up the application deployment life cycle. By adopting industry standards, such as Docker and Kubernetes, WebLogic now runs in a cloud neutral infrastructure. To help simplify and automate the creation of Docker images for WebLogic Server, we are providing this open source Oracle WebLogic Image Tool. This tool let's you create a new Linux based image, with installations of a JDK and WebLogic Server, and optionally, configure a WebLogic domain with your applications, apply WebLogic Server patches, or update an existing image.
The Image Tool provides three functions within the main script:
- Create Image - The
create
command creates a new Docker image and installs the requested Java and WebLogic software. Additionally, you can create a WebLogic domain in the image at the same time. - Rebase Image - The
rebase
command creates a new Docker image using an existing WebLogic domain from an existing image. The new Docker image can start from an existing image with a JDK and Oracle middleware installation, or can install the JDK and Oracle Home as part of moving the domain. - Update Image - The
update
command creates a new Docker image by applying WebLogic patches to an existing image. Additionally, you can create a WebLogic domain if one did not exist previously, update an an existing domain, or deploy an application. - Cache - The Image Tool maintains metadata on the local file system for patches and installers.
Thecache
command can be used to manipulate the local metadata.
- Docker client and daemon on the build machine, with minimum Docker version 18.03.1.ce.
- Installers for WebLogic Server and JDK from the Oracle Software Delivery Cloud.
- For patches, Oracle Support credentials.
- Bash version 4.0 or later, to enable the
<tab>
command complete feature.
- Build the project (
mvn clean package
) to create the ZIP installer in./imagetool/target
. - Unzip the release ZIP file to a desired location.
- For Linux environment,
cd your_unzipped_location/bin
andsource setup.sh
. - For Windows environment,
cd your_unzipped_location\bin
and.\imagetool.cmd
. - Run
imagetool help
to show the help text.
Use the Quick Start guide to create a Linux based WebLogic Docker image.
- Create an image with full Internet access
- Create an image with no Internet access
- Patch an existing image
- Create an image with a WebLogic domain using the WebLogic Deploy Tool
Copyright (c) 2019, 2020, Oracle and/or its affiliates.