Skip to content

Commit 18e97a9

Browse files
create image with Image Tool (#1398)
* create image with Image Tool * fix JDK version number * FIX MISTAKES YIKES * additional edits
1 parent 32736c8 commit 18e97a9

File tree

1 file changed

+37
-24
lines changed
  • docs-source/content/userguide/managing-domains/domain-in-image/base-images

1 file changed

+37
-24
lines changed

docs-source/content/userguide/managing-domains/domain-in-image/base-images/_index.md

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ using the Oracle Single Sign-On authentication service. If you do not already ha
6464
Use the web interface to accept the Oracle Standard Terms and Restrictions for the Oracle software images that you intend to deploy.
6565
Your acceptance of these terms is stored in a database that links the software images to your Oracle Single Sign-On login credentials.
6666

67-
The Oracle Container Registry provides a WebLogic Server 12.2.1.3.0 Docker image which already has the necessary patches applied.
67+
The Oracle Container Registry provides a WebLogic Server 12.2.1.3.0 Docker image, which already has the necessary patches applied, and the Oracle WebLogic Server 12.2.1.4.0 image, which does not require any patches.
6868

6969
First, you will need to log in to the Oracle Container Registry:
7070

@@ -88,38 +88,51 @@ Oracle Container Registry.
8888

8989
#### Creating a custom image with patches applied
9090

91-
The Oracle WebLogic Server Kubernetes Operator requires patch 29135930.
92-
This patch does have some prerequisite patches that will also need to be applied. The standard image `container-registry.oracle.com/middleware/weblogic:12.2.1.3` already has all of these patches applied.
91+
The Oracle WebLogic Server Kubernetes Operator and WebLogic Server 12.2.1.3.0 image requires patch 29135930.
92+
This patch has some prerequisite patches that will also need to be applied. To create and customize the WebLogic Server image,
93+
and apply the required patches, use the [WebLogic Image Tool](https://github.com/oracle/weblogic-image-tool).
9394

94-
[This sample](https://github.com/oracle/docker-images/blob/master/OracleWebLogic/samples/12213-patch-wls-for-k8s/README.md) in
95-
the Oracle GitHub Docker images repository demonstrates how to create an image with arbitrary patches, starting from an unpatched WebLogic Server 12.2.1.3 image (not the standard `container-registry/middleware/weblogic:12.2.1.3` pre-patched image). You can customize that sample to apply a different set of patches, if you require additional patches or PSUs.
95+
To use the Image Tool, follow the [Setup](https://github.com/oracle/weblogic-image-tool/blob/master/README.md#setup) instructions
96+
and [Quick Start](https://github.com/oracle/weblogic-image-tool/blob/master/site/quickstart.md) Guide.
9697

97-
When using that sample, you will need to download the required patch and also
98-
some prerequisite patches. To find the correct version of the patch, you should
99-
use the "Product or Family (Advanced)" option, then choose "Oracle WebLogic Server"
100-
as the product, and set the release to "Oracle WebLogic Server 12.2.1.3.181016" as
101-
shown in the image below:
98+
To build the WebLogic Server image and apply the patches:
10299

103-
![patch download page](/weblogic-kubernetes-operator/images/patch-download.png)
100+
1. Add the Server JRE and the WebLogic Server installer to the [`cache` command](https://github.com/oracle/weblogic-image-tool/blob/master/site/cache.md).
104101

102+
```
103+
$ imagetool cache addInstaller \
104+
--type=jdk \
105+
--version=8u241 \
106+
--path=/home/acmeuser/wls-installers/jre-8u241-linux-x64.tar.gz
105107
106-
The `Dockerfile` in that sample lists the base image as follows:
108+
$ imagetool cache addInstaller \
109+
--type=wls \
110+
--version=12.2.1.3.0 \
111+
--path=/home/acmeuser/wls-installers/fmw_12.2.1.3.0_wls_Disk1_1of1.zip
112+
```
113+
2. Use the [Create Tool](https://github.com/oracle/weblogic-image-tool/blob/master/site/create-image.md)
114+
to build the image and apply the patches.
107115
108-
```
109-
FROM oracle/weblogic:12.2.1.3-developer
110-
```
116+
For the Create Tool to download the patches, you must pass in your My Oracle Support credentials.
117+
```
111118
112-
You can change this to use the standard WebLogic Server image you
113-
downloaded from the OCR by updating the `FROM` statement
114-
as follows:
119+
$ imagetool create \
120+
--tag=weblogic:12.2.1.3 \
121+
--type=wls \
122+
--version=12.2.1.3.0 \
123+
--jdkVersion=8u241 \
124+
-–patches=29135930_12.2.1.3.0,27117282_12.2.1.3.0 \
125+
--user=username.mycompany.com \
126+
--passwordEnv=MYPWD
127+
```
115128
116-
```
117-
FROM container-registry.oracle.com/middleware/weblogic:12.2.1.3
118-
```
129+
3. After the tool creates the image, verify that the image is in your local repository:
130+
131+
```
132+
133+
$ docker images
134+
```
119135
120-
After running `docker build` as described in the sample, you
121-
will have created a Docker image with the necessary patches to
122-
run WebLogic 12.2.1.3 in Kubernetes using the operator.
123136
124137
#### Creating a custom image with your domain inside the image
125138

0 commit comments

Comments
 (0)