Skip to content

Commit 279a9b5

Browse files
committed
Merge branch 'remove-dash-ai-tag' into 'main'
Changes based on new sample directory structure and remove the "-AI" tag See merge request weblogic-cloud/weblogic-kubernetes-operator!4331
2 parents 31ee0dd + dbab811 commit 279a9b5

File tree

2 files changed

+26
-38
lines changed

2 files changed

+26
-38
lines changed

documentation/site/content/base-images/custom-images.md

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ Example steps for creating a custom WebLogic image with a Model in Image file la
525525
526526
1. To gain an overall understanding of Model in Image domains,
527527
read the [Model in Image User Guide]({{< relref "/managing-domains/model-in-image/_index.md" >}})
528-
and the [Model in Image Sample]({{< relref "/managing-domains/samples/domains/model-in-image/_index.md" >}}).
528+
and the [Model in Image Sample]({{< relref "/samples/domains/model-in-image/_index.md" >}}).
529529
Note that the sample uses the recommended best approach,
530530
auxiliary images, instead of the alternative approach, which is used in this example.
531531
@@ -534,10 +534,10 @@ Example steps for creating a custom WebLogic image with a Model in Image file la
534534
that describe how to:
535535
536536
- Download the operator source and its Model in Image sample
537-
(including copying the sample to the suggested location, `/tmp/mii-sample`).
537+
(including copying the sample to the suggested location, `/tmp/sample`).
538538
- Download the latest [WebLogic Deploy Tooling](https://github.com/oracle/weblogic-deploy-tooling/releases) (WDT)
539539
and [WebLogic Image Tool](https://github.com/oracle/weblogic-image-tool/releases) (WIT) installer ZIP files
540-
to your `/tmp/mii-sample/model-images` directory.
540+
to your `/tmp/sample/wdt-artifacts` directory.
541541
Both WDT and WIT are required to create your Model in Image container images.
542542
- Install (unzip) the WebLogic Image Tool and configure its cache to reference your WebLogic Deploy Tooling download.
543543
@@ -555,9 +555,9 @@ Example steps for creating a custom WebLogic image with a Model in Image file la
555555
where the sample model YAML file and model properties files are already staged:
556556
557557
```shell
558-
$ rm -f /tmp/mii-sample/model-images/model-in-image__WLS-v1/archive.zip
559-
$ cd /tmp/mii-sample/archives/archive-v1
560-
$ zip -r /tmp/mii-sample/model-images/model-in-image__WLS-v1/archive.zip wlsdeploy
558+
$ rm -f /tmp/sample/wdt-artifacts/wdt-model-files/WLS-LEGACY-v1/archive.zip
559+
$ cd /tmp/sample/wdt-artifacts/archives/archive-v1
560+
$ zip -r /tmp/sample/wdt-artifacts/wdt-model-files/WLS-LEGACY-v1/archive.zip wlsdeploy
561561
```
562562
563563
(The `rm -f` command is included in case there's an
@@ -567,29 +567,23 @@ Example steps for creating a custom WebLogic image with a Model in Image file la
567567
Second, run the following WIT command:
568568
569569
```shell
570-
$ cd /tmp/mii-sample/model-images
570+
$ cd /tmp/sample/wdt-artifacts/wdt-model-files/WLS-LEGACY-v1
571571
```
572572
```shell
573573
$ ./imagetool/bin/imagetool.sh update \
574-
--tag model-in-image:WLS-v1 \
574+
--tag wdt-domain-image:WLS-LEGACY-v1 \
575575
--fromImage container-registry.oracle.com/middleware/weblogic:12.2.1.4 \
576-
--wdtModel ./model-in-image__WLS-v1/model.10.yaml \
577-
--wdtVariables ./model-in-image__WLS-v1/model.10.properties \
578-
--wdtArchive ./model-in-image__WLS-v1/archive.zip \
576+
--wdtModel ./model.10.yaml \
577+
--wdtVariables ./model.10.properties \
578+
--wdtArchive ./archive.zip \
579579
--wdtModelOnly \
580580
--wdtDomainType WLS \
581581
--chown oracle:root
582582
```
583-
584-
**NOTE**: If using a Fusion Middleware Infrastructure base image,
585-
then specify a `--wdtDomainType` of `JRF` or `RestrictedJRF`,
586-
`JRF-v1` instead of `WLS-v1` for the image tag,
587-
and substitute each occurrence of `model-in-image__WLS-v1` with `model-in-image__JRF-v1`.
588-
**Also note** that JRF support in Model in Image domains is deprecated in operator version 4.1.0; For JRF domains, use the [Domain on PV]({{< relref "/managing-domains/choosing-a-model/_index.md" >}}) domain home source type instead.
583+
**NOTE** that JRF support in Model in Image domains is deprecated in operator version 4.1.0; For JRF domains, use the [Domain on PV]({{< relref "/managing-domains/choosing-a-model/_index.md" >}}) domain home source type instead.
589584
590585
1. For an example Domain YAML file that sets up Model in Image to reference the image,
591-
see `/tmp/mii-sample/domain-resources/WLS/mii-initial-d1-WLS-v1.yaml`
592-
(or `./JRF/mii-initial-d1-JRF-v1.yaml` if using Fusion Middleware Infrastructure `JRF` mode).
586+
see `/tmp/sample/domain-resources/WLS-LEGACY/mii-initial-d1-WLS-LEGACY-v1.yaml`
593587
594588
**NOTES**:
595589
@@ -598,9 +592,3 @@ Example steps for creating a custom WebLogic image with a Model in Image file la
598592
599593
- The domain type specified in `domain.spec.configuration.model.domainType`
600594
must correspond with the `--wdtDomainType` specified on the WIT command line when creating the image.
601-
602-
- To compare this example with an equivalent auxiliary image domain:
603-
```
604-
$ diff /tmp/mii-sample/domain-resources/WLS-AI/mii-initial-d1-WLS-AI-v1.yaml \
605-
/tmp/mii-sample/domain-resources/WLS/mii-initial-d1-WLS-v1.yaml
606-
```

documentation/site/content/managing-domains/model-in-image/auxiliary-images.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,14 @@ to use Docker to build its auxiliary image:
185185
1. Create a `/tmp/mystaging/models` directory as a staging directory and copy the model YAML file, properties, and archive into it:
186186
```shell
187187
$ mkdir -p /tmp/mystaging/models
188-
$ cp /tmp/mii-sample/model-images/model-in-image__WLS-AI-v1/model.10.yaml ./models
189-
$ cp /tmp/mii-sample/model-images/model-in-image__WLS-AI-v1/model.10.properties ./models
190-
$ cp /tmp/mii-sample/model-images/model-in-image__WLS-AI-v1/archive.zip ./models
188+
$ cp /tmp/sample/wdt-artifacts/wdt-model-files/WLS-v1/model.10.yaml ./models
189+
$ cp /tmp/sample/wdt-artifacts/wdt-model-files/WLS-v1/model.10.properties ./models
190+
$ cp /tmp/sample/wdt-artifacts/wdt-model-files/WLS-v1/archive.zip ./models
191191
```
192192
If the `archive.zip` file is missing, then repeat the step to create this file
193193
in the Model in Image sample
194194
[initial use case]({{< relref "/samples/domains/model-in-image/initial.md#staging-a-zip-file-of-the-archive" >}})
195-
while using `/tmp/mii-sample/model-images/model-in-image__WLS-AI-v1` as the target directory.
195+
while using `/tmp/sample/wdt-artifacts/wdt-model-files/WLS-v1` as the target directory.
196196

197197
1. Install WDT in the staging directory and remove its `weblogic-deploy/bin/*.cmd` files,
198198
which are not used in UNIX environments:
@@ -210,7 +210,7 @@ to use Docker to build its auxiliary image:
210210
$ cd /tmp/mystaging
211211
$ docker build -f /tmp/mii-sample/ai-docker-file/Dockerfile \
212212
--build-arg AUXILIARY_IMAGE_PATH=/auxiliary \
213-
--tag model-in-image:WLS-AI-v1 .
213+
--tag model-in-image:WLS-v1 .
214214
```
215215

216216
See `./Dockerfile` for an explanation of each build argument.
@@ -249,9 +249,9 @@ to use Docker to build its auxiliary image:
249249
1. If you have successfully created the image, then it should now be in your local machine's Docker repository. For example:
250250

251251
```
252-
$ docker images model-in-image:WLS-AI-v1
252+
$ docker images model-in-image:WLS-v1
253253
REPOSITORY TAG IMAGE ID CREATED SIZE
254-
model-in-image WLS-AI-v1 eac9030a1f41 1 minute ago 4.04MB
254+
model-in-image WLS-v1 eac9030a1f41 1 minute ago 4.04MB
255255
```
256256

257257
1. After the image is created, it should have the WDT executables in
@@ -260,18 +260,18 @@ to use Docker to build its auxiliary image:
260260
image to verify this:
261261

262262
```shell
263-
$ docker run -it --rm model-in-image:WLS-AI-v1 ls -l /auxiliary
263+
$ docker run -it --rm model-in-image:WLS-v1 ls -l /auxiliary
264264
total 8
265265
drwxr-xr-x 1 oracle root 4096 Jun 1 21:53 models
266266
drwxr-xr-x 1 oracle root 4096 May 26 22:29 weblogic-deploy
267267

268-
$ docker run -it --rm model-in-image:WLS-AI-v1 ls -l /auxiliary/models
268+
$ docker run -it --rm model-in-image:WLS-v1 ls -l /auxiliary/models
269269
total 16
270270
-rw-rw-r-- 1 oracle root 5112 Jun 1 21:52 archive.zip
271271
-rw-rw-r-- 1 oracle root 173 Jun 1 21:59 model.10.properties
272272
-rw-rw-r-- 1 oracle root 1515 Jun 1 21:59 model.10.yaml
273273

274-
$ docker run -it --rm model-in-image:WLS-AI-v1 ls -l /auxiliary/weblogic-deploy
274+
$ docker run -it --rm model-in-image:WLS-v1 ls -l /auxiliary/weblogic-deploy
275275
total 28
276276
-rw-r----- 1 oracle root 4673 Oct 22 2019 LICENSE.txt
277277
-rw-r----- 1 oracle root 30 May 25 11:40 VERSION.txt
@@ -305,7 +305,7 @@ spec:
305305
306306
serverPod:
307307
auxiliaryImages:
308-
- image: "model-in-image:WLS-AI-v1"
308+
- image: "model-in-image:WLS-v1"
309309
imagePullPolicy: IfNotPresent
310310
volume: auxiliaryImageVolume1
311311
```
@@ -325,10 +325,10 @@ spec:
325325
- name: AUXILIARY_IMAGE_COMMAND
326326
value: cp -R $AUXILIARY_IMAGE_PATH/* $AUXILIARY_IMAGE_TARGET_PATH
327327
- name: AUXILIARY_IMAGE_CONTAINER_IMAGE
328-
value: model-in-image:WLS-AI-v1
328+
value: model-in-image:WLS-v1
329329
- name: AUXILIARY_IMAGE_CONTAINER_NAME
330330
value: compat-operator-aux-container1
331-
image: model-in-image:WLS-AI-v1
331+
image: model-in-image:WLS-v1
332332
imagePullPolicy: IfNotPresent
333333
name: compat-operator-aux-container1
334334
volumeMounts:

0 commit comments

Comments
 (0)