Skip to content

Commit fc91ba0

Browse files
committed
Incorporate Rosemary's sample edits from MR4241 and refactored image name in MII update3 sample use-case.
1 parent 45dff1e commit fc91ba0

File tree

4 files changed

+28
-27
lines changed

4 files changed

+28
-27
lines changed

documentation/4.1/content/samples/domains/domain-home-on-pv/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ For more information on Domain on PV, see the [Domain on PV]({{< relref "/managi
2020

2121
#### Domain on PV domain types (WLS and JRF)
2222

23-
Domain on PV is supported on two types of domains: a standard Oracle WebLogic Server (WLS) domain and an Oracle Fusion Middleware Infrastructure, Java Required Files (JRF) domain. This sample demonstrates both Oracle WebLogic Server (WLS) and JRF domain types.
23+
Domain on PV is supported on two types of domains: a standard Oracle WebLogic Server (WLS) domain and an Oracle Fusion Middleware Infrastructure, Java Required Files (JRF) domain. This sample demonstrates both WLS and JRF domain types.
2424

2525
The JRF domain path through the sample includes additional steps required for JRF: deploying an infrastructure database, initializing the database using the Repository Creation Utility (RCU) tool, referencing the infrastructure database from the WebLogic configuration, setting an Oracle Platform Security Services (OPSS) wallet password, and exporting or importing an OPSS wallet file. JRF domains may be used by Oracle products that layer on top of WebLogic Server, such as SOA and OSB.
2626

documentation/4.1/content/samples/domains/domain-home-on-pv/build-domain-creation-image.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ description: "Create WebLogic images using the WebLogic Image Tool and WebLogic
1212
### Overview
1313

1414
The image build process uses the WebLogic Image Tool to create a Domain on PV `domain creation image`. This image contains:
15-
- A WebLogic Deploy Tooling installation (expected in an image's `/auxiliary/weblogic-deploy` directory by default).
16-
- WDT model YAML file (model), WDT variable (property), and WDT archive ZIP (archive) files (expected in directory `/auxiliary/models` by default).
15+
- A WebLogic Deploy Tooling installation, expected in an image's `/auxiliary/weblogic-deploy` directory by default.
16+
- WDT model YAML file (model), WDT variable (property), and WDT archive ZIP (archive) files, expected in directory `/auxiliary/models` by default,
17+
which can include the following file types:
18+
- WDT model YAML file - A declarative definition of the domain configuration.
19+
- WDT variable file - A property file that maps names to values. These names can be referenced from the model file to allow a model to be used across environments by applying the variable file for a particular environment to the model.
20+
- WDT archive file - A ZIP file containing application binaries and other files and directories needed to run the domain.
1721

1822
### Build the domain creation image
1923

@@ -126,9 +130,9 @@ The archive top directory, named `wlsdeploy`, contains a directory named `applic
126130

127131
The application displays important details about the WebLogic Server instance that it's running on: namely its domain name, cluster name, and server name, as well as the names of any data sources that are targeted to the server. Also, you can see that application output reports that it's at version `v1`.
128132

129-
#### Stage a ZIP file of the archive
133+
#### Stage the archive ZIP file
130134

131-
When you create the image, you will use the files in the staging directory, `/tmp/sample/wdt-artifacts/wdt-model-files/WLS-v1`. In preparation, you need it to contain a WDT application archive (a ZIP) file.
135+
When you create the image, you will use the files in the staging directory, `/tmp/sample/wdt-artifacts/wdt-model-files/WLS-v1`. In preparation, you need it to contain a WDT application archive ZIP file.
132136

133137
Run the following commands to create your application archive ZIP file and put it in the expected directory:
134138

documentation/4.1/content/samples/domains/domain-home-on-pv/prerequisites.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ To do this, follow the same steps as the [Quick Start](https://oracle.github.io/
147147
148148
### Additional prerequisites for JRF domains
149149
150-
**NOTE**: If you're using a Domain on PV WLS domain type, skip this section and continue on to [Build the domain creation image]({{< relref "/samples/domains/domain-home-on-pv/build-domain-creation-image.md" >}})
150+
**NOTE**: If you're using a Domain on PV, WLS domain type, skip this section and continue on to [Build the domain creation image]({{< relref "/samples/domains/domain-home-on-pv/build-domain-creation-image.md" >}})
151151
for the Domain on PV sample.
152152
153153
#### JRF prerequisites

documentation/4.1/content/samples/domains/model-in-image/update3.md

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Here are the steps for this use case:
2929

3030
2. Create an updated auxiliary image.
3131

32-
Recall that a goal of the [Initial]({{< relref "/samples/domains/model-in-image/initial.md" >}}) use case was to demonstrate using the WebLogic Image Tool to create an auxiliary image named `model-in-image:WLS-AI-v1` from files that were staged in `/tmp/sample/model-images/model-in-image__WLS-AI-v1/`. The staged files included a web application in a WDT ZIP archive, and WDT model configuration for a WebLogic Server Administration Server called `admin-server` and a WebLogic cluster called `cluster-1`. The final image was called `model-in-image:WLS-AI-v1` and, in addition to having a copy of the staged files in its `/auxiliary/models` directory, also contained a WebLogic Deploy Tooling installation in its `/auxiliary/weblogic-deploy` directory.
32+
Recall that a goal of the [Initial]({{< relref "/samples/domains/model-in-image/initial.md" >}}) use case was to demonstrate using the WebLogic Image Tool to create an auxiliary image named `wdt-domain-image:WLS-v1` from files that were staged in `/tmp/sample/model-images/model-in-image__WLS-AI-v1/`. The staged files included a web application in a WDT ZIP archive, and WDT model configuration for a WebLogic Server Administration Server called `admin-server` and a WebLogic cluster called `cluster-1`. The final image was called `wdt-domain-image:WLS-AI-v1` and, in addition to having a copy of the staged files in its `/auxiliary/models` directory, also contained a WebLogic Deploy Tooling installation in its `/auxiliary/weblogic-deploy` directory.
3333

3434
In this use case, you will follow similar steps to the [Initial]({{< relref "/samples/domains/model-in-image/initial.md" >}}) use case to create a new image with an updated application and model, plus deploy the updated model and application to the running [Update 1]({{< relref "/samples/domains/model-in-image/update1.md" >}}) use case domain.
3535

@@ -51,24 +51,24 @@ Here are the steps for this use case:
5151
# Delete existing archive.zip in case we have an old leftover version
5252
```
5353
```shell
54-
$ rm -f /tmp/sample/model-images/model-in-image__WLS-AI-v2/archive.zip
54+
$ rm -f /tmp/sample/wdt-artifacts/wdt-model-files/WLS-v2/archive.zip
5555
```
5656
```
5757
# Move to the directory which contains the source files for our new archive
5858
```
5959
```shell
60-
$ cd /tmp/sample/archives/archive-v2
60+
$ cd /tmp/sample/wdt-artifacts/archives/archive-v2
6161
```
6262
```
63-
# Zip the archive to the location will later use when we run the WebLogic Image Tool
63+
# Using the [WDT archive helper tool](#https://oracle.github.io/weblogic-deploy-tooling/userguide/tools/archive_helper/), create the archive in the location that we will use later when we run the WebLogic Image Tool.
6464
```
6565
```shell
66-
$ zip -r /tmp/sample/model-images/model-in-image__WLS-AI-v2/archive.zip wlsdeploy
66+
$ /tmp/sample/wdt-artifacts/weblogic-deploy/bin/archiveHelper.sh add application -archive_file=/tmp/sample/wdt-artifacts/wdt-model-files/WLS-v2/archive.zip -source=wlsdeploy/applications/myapp-v2
6767
```
6868
6969
- Understanding your staged model files.
7070
71-
The WDT model YAML file and properties for this use case have already been staged for you to directory `/tmp/sample/model-in-image__WLS-AI-v2`.
71+
The WDT model YAML file and properties for this use case have already been staged for you to directory `/tmp/sample/wdt-artifacts/wdt-model-files/WLS-v2`.
7272
7373
The `model.10.yaml` file in this directory has an updated path `wlsdeploy/applications/myapp-v2` that references the updated web application in your archive, but is otherwise identical to the model staged for the original image. The final related YAML file stanza looks like this:
7474
@@ -85,25 +85,22 @@ Here are the steps for this use case:
8585
8686
- Create a new auxiliary image from your staged model files using WIT.
8787
88-
At this point, you have staged all of the files needed for image `model-in-image:WLS-AI-v2`; they include:
88+
At this point, you have staged all of the files needed for image `wdt-domain-image:WLS-v2`; they include:
8989
90-
- `/tmp/sample/model-images/weblogic-deploy.zip`
91-
- `/tmp/sample/model-images/model-in-image__WLS-AI-v2/model.10.yaml`
92-
- `/tmp/sample/model-images/model-in-image__WLS-AI-v2/model.10.properties`
93-
- `/tmp/sample/model-images/model-in-image__WLS-AI-v2/archive.zip`
90+
- `/tmp/sample/wdt-artifacts/wdt-model-files/WLS-v2/model.10.yaml`
91+
- `/tmp/sample/wdt-artifacts/wdt-model-files/WLS-v2/model.10.properties`
92+
- `/tmp/sample/model-images/wdt-artifacts/wdt-model-files/WLS-v2/archive.zip`
9493
95-
If you don't see the `weblogic-deploy.zip` file, then you missed a step in the [prerequisites]({{< relref "/samples/domains/model-in-image/prerequisites.md" >}}).
96-
97-
Now, you use the Image Tool to create an auxiliary image named `model-in-image:WLS-AI-v2`. You've already set up this tool during the prerequisite steps.
94+
Now, you use the Image Tool to create an auxiliary image named `wdt-domain-image:WLS-v2`. You've already set up this tool during the prerequisite steps.
9895
9996
Run the following commands to create the auxiliary image and verify that it worked:
10097
10198
```shell
102-
$ cd /tmp/sample/model-images/model-in-image__WLS-AI-v2
99+
$ cd /tmp/sample/wdt-artifacts/wdt-model-files/WLS-v2
103100
```
104101
```shell
105-
$ /tmp/sample/model-images/imagetool/bin/imagetool.sh createAuxImage \
106-
--tag model-in-image:WLS-AI-v2 \
102+
$ /tmp/sample/wdt-artifacts/imagetool/bin/imagetool.sh createAuxImage \
103+
--tag wdt-domain-image:WLS-v2 \
107104
--wdtModel ./model.10.yaml \
108105
--wdtVariables ./model.10.properties \
109106
--wdtArchive ./archive.zip
@@ -121,10 +118,10 @@ Here are the steps for this use case:
121118
When the command succeeds, it will end with output like the following:
122119
123120
```
124-
[INFO ] Build successful. Build time=36s. Image tag=model-in-image:WLS-AI-v2
121+
[INFO ] Build successful. Build time=36s. Image tag=wdt-domain-image:WLS-v2
125122
```
126123
127-
Also, if you run the `docker images` command, then you will see an image named `model-in-image:WLS-AI-v2`.
124+
Also, if you run the `docker images` command, then you will see an image named `wdt-domain-image:WLS-v2`.
128125
129126
**NOTE**: Before you deploy the domain custom resource, ensure all nodes in your Kubernetes cluster [can access `auxiliary-image` and other images]({{< relref "/samples/domains/model-in-image/_index.md#ensuring-your-kubernetes-cluster-can-access-images" >}}).
130127
@@ -140,15 +137,15 @@ Here are the steps for this use case:
140137
141138
- Working on a copy is not strictly necessary, but it helps keep track of your work for the different use cases in this sample and provides you a backup of your previous work.
142139
143-
- Change the `/tmp/sample/mii-update3.yaml` Domain YAML file's `image` field to reference `model-in-image:WLS-AI-v2` instead of `model-in-image:WLS-AI-v1`.
140+
- Change the `/tmp/sample/mii-update3.yaml` Domain YAML file's `image` field to reference `wdt-domain-image:WLS-v2` instead of `wdt-domain-image:WLS-v1`.
144141
145142
The final result will look something like this:
146143
147144
```yaml
148145
...
149146
spec:
150147
...
151-
image: "model-in-image:WLS-AI-v2"
148+
image: "wdt-domain-image:WLS-v2"
152149
```
153150
154151
- Apply your changed Domain YAML file:

0 commit comments

Comments
 (0)